【问题标题】:Why is Core Animation available even without QuartzCore? [duplicate]为什么即使没有 QuartzCore 也可以使用 Core Animation? [复制]
【发布时间】:2014-08-10 19:15:46
【问题描述】:

如果 CALayer 标头是 QuartzCore 的一部分,我需要链接到 QuartzCore 对吗?现在我的项目链接到 UIKit、CoreGraphics 和 Foundation。因此,当我在头文件中使用 CALayer 时,它会完整地打印在下面……它会编译!

//
//  EGLSomeClass.h
//  SomeApp
//

#import <Foundation/Foundation.h>

@interface EGLSomeClass : NSObject

@property (nonatomic) CALayer* aLayer;

@end

我猜如果事情在我认为不会的情况下工作,那在某种程度上是一个加分项,但我仍然想知道为什么我不需要 QuartzCore 来使用 Core Animation。

【问题讨论】:

    标签: ios core-animation quartz-core


    【解决方案1】:

    【讨论】:

    • OK,核心动画功能在导入 UIKit 或 AppKit 时可用。
    猜你喜欢
    • 1970-01-01
    • 2015-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-25
    • 2014-04-22
    相关资源
    最近更新 更多