I have subclassed UIVIew to make my custom view.
-(UIMyMessageView*)init:(NSString*)withMessage
{
[super initWithFrame:messageFrame];
// I Would like to do :
self->layer.cornerRadius = 8; // This doesn't compile
}
Why can’t I set my own layer?
include QuartzCore Framework
Also include this framework in your project.
http://meandmark.com/blog/2011/03/xcode-4-adding-a-framework-to-your-project/