当前位置:编程学习 > wap >>

新手照书敲代码错误,关于CGAffineTransformIdentity在Xcode4.2下报错!

代码如下:
-(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)InterfaceOrientation duration:(NSTimeInterval)duration {
     if(InterfaceOrientation == UIInterfaceOrientationPortrait)
     {
         self.view =self.portrait;
         self.view.transform = CGAffineTransformIdentity;
         self.view.transform =
    CGAffineTransformMakeRotation(degreeToRadians(0)); 
         self.view.bounds =CGRectMake(0.0, 0.0, 320.0, 460.0);
     }


这方法里面使用的CGAffineTransformIdentity和CGAffineTransformMakeRotation报错,但是输入方法的时候还有提示,但是还是报如下错误?
Undefined symbols for architecture i386:
  "_CGAffineTransformMakeRotation", referenced from:
      -[ViewController willAnimateRotationToInterfaceOrientation:duration:] in ViewController.o
  "_CGAffineTransformIdentity", referenced from:
      -[ViewController willAnimateRotationToInterfaceOrientation:duration:] in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation) --------------------编程问答-------------------- 没人 自顶!!! --------------------编程问答-------------------- 库包含了吗?

看链接信息,是模拟器版本吧?看看模拟器支持吗
补充:移动开发 ,  iPhone
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,