我正在尝试做半页卷曲功能.这是我正在使用的代码:
#import <QuartzCore/QuartzCore.h>
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:1.0f];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
[animation setType:(notCurled ? @"mapCurl" : @"mapUnCurl")];
[animation setRemovedOnCompletion:NO];
[animation setFillMode: @"extended"];
[animation setRemovedOnCompletion: NO];
notCurled = !notCurled;
Run Code Online (Sandbox Code Playgroud)
但是我遇到了以下错误
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CATransition", referenced from:
objc-class-ref in MyMapViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"_OBJC_CLASS_$_CATransition", referenced from:
objc-class-ref in SJMapViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker …Run Code Online (Sandbox Code Playgroud) 升级到Xcode 4.4后,我试图在iPhone或iPad上运行我的(通用)应用程序时遇到这个恼人的链接器错误.如果我在iOS模拟器上运行它,我没有问题...我尝试添加armv6,不包括armv7,但没有运气......任何想法?