开发者

Calayer subclass problem

开发者 https://www.devze.com 2023-03-09 20:17 出处:网络
I am creating calayer subclass for carousel view. My subclass is @interface Carousellayer : CALayer { } I get an error m开发者_JAVA百科essage in

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

精彩评论

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

关注公众号