动画不工作在iPad上。在iPhone上一样的作品 [英] Animation not working on iPad. same works on iphone

查看:134
本文介绍了动画不工作在iPad上。在iPhone上一样的作品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经得到了尝试使用动画基于块的动画IOS4.0一个UIView一个非常简单的项目。

I've got a very simple project that tries to animate a UIView using block based iOS4.0 animation.

标题

@interface animatepadViewController : UIViewController {

    UIView *contentView;
}

@property(nonatomic, retain) IBOutlet UIView *contentView;



@end

实施

// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];

    [UIView animateWithDuration:1.0 animations:^{self.contentView.alpha = 0.0;}];

}

我添加类型的UIView的子视图在界面生成器与黑色的背景颜色。

I've added a subview of type UIVIew in the interface builder with a background color of black.

这些都是我从默认的iPad的意见做出的唯一改变基础的项目。

these are the only change i've made from the default ipad "view" based project.

我收到以下错误

2010-12-28 17:59:05.689 animatepad[29835:207] *** +[UIView animateWithDuration:animations:]: unrecognized selector sent to class 0x217689c

这仅发生在iPad上,而不是在iPhone

this happens only on the ipad and NOT on the iPhone

在此先感谢

推荐答案

要更新模拟器,你将需要更新X code至3.2.5版本。

To update the simulator, you will need to update Xcode to version 3.2.5.

这篇关于动画不工作在iPad上。在iPhone上一样的作品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆