开发者

Calayer subclass problem

I am creating calayer subclass for carousel view.

My subclass is

@interface Carousellayer : CALayer {

}

I get an error m开发者_JAVA百科essage in

Cannot find interface declaration for 'CALayer', superclass of 'Carousellayer' in Carousellayer.h


CALayer header files are not included by default, you need to import QuartzCore:

#import <QuartzCore/QuartzCore.h>

And also link your application with the corresponding framework.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜