iphone - 导航 Controller 和 ViewDeck 库
<p><p>我的 View 面板库和导航 Controller 有问题,当我使用 popviewcontroller 按下返回按钮时应用程序崩溃。
是否有人在他们的应用中添加了带有导航 Controller 的 View 面板?</p>
<p>我已经以这种方式初始化了deckView:</p>
<pre><code>LeftViewController *leftViewController = [initWithNibName:@"LeftViewController" bundle:];
CentraController *centralViewController = [initWithNibName:@"CentraController" bundle:];
self.deckController = [initWithCenterViewController:centralViewController leftViewController:leftViewController];
self.deckController.leftLedge = 100;
self.deckController.navigationControllerBehavior = IIViewDeckNavigationControllerContained;
;
;
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>使用 <a href="https://github.com/Inferis/ViewDeck/blob/master/ViewDeckExample/AppDelegate.m" rel="noreferrer noopener nofollow">source</a>卢克:</p>
<pre><code>ViewController *centerController = [initWithNibName:@"ViewController" bundle:nil];
self.centerController = [initWithRootViewController:centerController];
IIViewDeckController* deckController =[ initWithCenterViewController:self.centerController leftViewController:self.leftController rightViewController:rightController];
</code></pre></p>
<p style="font-size: 20px;">关于iphone - 导航 Controller 和 ViewDeck 库,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/12493352/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/12493352/
</a>
</p>
页:
[1]