我有一个 UIViewController(parent)调用 presentModalViewController
和 viewDidLoad
上的另一个 UIViewController(child)。
如果 parent 没有 UINavigationController,则 presentModalViewController
什么都不做。如果它有 UINavigationController,则 presentModalViewController
会按预期显示 child。
这是 presentModalViewController
的标准行为还是这里有其他问题?
最佳答案
因为你是在viewDidLoad中呈现,试试在viewDidAppear中呈现。
关于iphone - presentModalViewController 什么都不做,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4059790/