Can't compile code when working with CALayer

Posted by Sheehan Alam on Stack Overflow See other posts from Stack Overflow or by Sheehan Alam
Published on 2010-06-03T16:53:41Z Indexed on 2010/06/03 17:04 UTC
Read the original article Hit count: 320

For some reason I get linker errors when I try and use CALayer:

  "_OBJC_CLASS_$_CALayer", referenced from:

I have imported the following headers:

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>

Code:

arrowImage = [[CALayer alloc] init];

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c