I am confused on how I would round corners, I've seen about 10 other posts and non of them have helped me. Am I doing this correctly?
#import "QuartzCore/QuartzCore.h" // in my ViewController.h
- (void)viewDidLoad
{
[super viewDidLoad];
self.backgroundLayer.cornerRadius = 10.0f;
}
If somebody could help me out on this it'd be greatly appreciated.
Try turning on masksToBounds
. Also, what is backgroundLayer?
- (void)viewDidLoad {
[super viewDidLoad];
self.view.layer.cornerRadius = 10.0f;
self.view.layer.masksToBounds = YES;
}
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