我使用UIInterpolatingMotionEffect在iOS 7中创建一个自定义AlertView。它在iOS 7设备中运行良好,但在使用iOS 6或更少的设备上运行时会出现以下错误。
任何帮助都将不胜感激。
_OBJC_CLASS_$_UIInterpolatingMotionEffect dyld:符号未找到:
参考来源: /Users/kashif/Library/Application Support/iPhone Simulator/6.1/Applications/653D5FF9-1B55-4FFA-B608-4B2077CD0DFA/MyTest.app/MyTest
预期在: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/Frameworks/UIKit.framework/UIKit in /Users/kashif/Library/Application Support/iPhone Simulator/6.1/Applications/653D5FF9-1B55-4FFA-B608-4B2077CD0DFA/MyTest.app/MyTest
发布于 2013-10-29 09:12:43
UIMotionEffect实际上只在iOS 7中可用。要使应用程序在iOS 6下工作,请在项目文件列表中选择UIKit.framework,然后将其链接状态(如右侧栏所示)从Required更改为可选状态。但是,对于UIMotionEffect6,您将需要一个不同的代码路径(不使用iOS )。
发布于 2013-10-29 09:10:11
查看类中的标题行。
NS_CLASS_AVAILABLE_IOS(7_0) @interface UIMotionEffect : NSObject <NSCopying, NSCoding>它只能从iOS7获得。
https://stackoverflow.com/questions/19653830
复制相似问题