【发布时间】:2012-03-20 19:39:06
【问题描述】:
iOS iPad 模拟器 5.0.1 上的设置:
根控制器 X、UIViewController A、UIViewController B
A.definesPresentationContext = YES;
// Skipped: set modal presentation props.
[A presentViewController: B, animated: YES, completion: nil];
如果我检查A.presentedViewController,结果是B - 正确。
如果我检查B.presentingViewController,结果是X
这怎么可能?如果 B 被解雇,这也会导致我在 A 中得不到通知的问题(我在 A 中覆盖 dismissViewController: )。
我需要做什么来制作演示控制器?
【问题讨论】:
标签: objective-c cocoa-touch ios5 uiviewcontroller xamarin.ios