+1  A: 

You need to import the QuartzCore headers into your .m file.

#import <QuartzCore/QuartzCore.h>
Simon Whitaker
#import "T_CALayer.h"#import <QuartzCore/QuartzCore.h>@implementation T_CALayer-(void) awakeFromNib{ CALayer *layer =[CALayer layer];}@endThat didn't worked.
new_programmer
Can anyone give a simple example with a colored square in a View.
new_programmer

related questions