How can I center the UILabel on the UIView? I am using the following code
float width = weatherView.bounds.size.width; float height = weatherView.bounds.size.height; [self.label setFrame:CGRectMake(width-100,height-100, 100, 100)];
How about:
[self.label setCenter:view.center];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With