摘要: UIViewController的parentViewController属性在iOS5下发生了改变原来的应用在iOS5下做了调试,发现一个弹出的模式窗口的parentViewController属性一直返回nil,查了一下Apple的文档,发现iOS5下UIViewController的parentViewController属性已经发生了变化,所有模式窗口的parentViewController属性都会返回nil,要获得模式窗口的父窗口,需要使用新的presentingViewController属性,同时增加的还有presentedViewController属性。相关的Apple S 阅读全文
posted @ 2012-08-02 21:35 大脚印 阅读(7482) 评论(1) 推荐(0) 编辑
摘要: - (IBAction)switchViews:(id)sender { [UIView beginAnimations:@"View Flip" context:nil]; [UIView setAnimationDuration:1.25]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; if (self.secondViewController.view.superview == nil) {//表示当前视图是根视图 if (self.secondViewControlle... 阅读全文
posted @ 2012-08-02 19:35 大脚印 阅读(1003) 评论(0) 推荐(0) 编辑