我怎样才能将UILabel置于UIView的中心?我使用以下代码
float width = weatherView.bounds.size.width; float height = weatherView.bounds.size.height; [self.label setFrame:CGRectMake(width-100,height-100, 100, 100)];
uiview uilabel ios
ios ×1
uilabel ×1
uiview ×1