When I tried the following:
I get an error: Property 'cornerRadius' cannot be found in forward class object 'CALayer *'
The solution is to import the QuartzCore framework:
Happy coding!
UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectZero]; myLabel.layer.cornerRadius = 2.0f; [myLabel release];
I get an error: Property 'cornerRadius' cannot be found in forward class object 'CALayer *'
The solution is to import the QuartzCore framework:
#import <QuartzCore/QuartzCore.h>
Happy coding!
No comments:
Post a Comment