質問

私はこれを解決するための日です。理解できないのはなぜ私のアプリがクラッシュします。

を使用してい JASidePanel 図書館をパネル効果に私のアプリです。左側のパネルはtableviewる行為をナビゲーションガイドのセンターパネルです。一つのシナリオの場合、特定のオプションを選択左側のパネルがオープン)ウルグアイ-ラウンドのパネルがすぐ近くには、左側のパネルは、現在他のナビコントローラー(一貫した)ルートビューコントローラです。しかし、この転移にクラッシュマアプリです。

私が見ることの衝突が起こらないのJASidePanelのコードは私のセンターパネルコントローラーコード[self presentViewController:self.cityNavigationController animated:YES completion:nil];).私はこのアプリがクラッシュによる内部のクラッシュで、iOSの枠組みを行ったを通じて指導による指導やっこです。

もしようとしてやろうという間違っています。誰でもできますから私はなぜこの衝突が起こるのか。どうすれば私が見るのはこの問題を解決するには?の手段又は手続きできます/あっていくの検出に問題なのでしょうか。

のお役に立てるようよろしくお願いいたします。

デバイスグ:

Thread 0 Crashed:
0   libobjc.A.dylib                 0x3a085b26 objc_msgSend + 6
1   UIKit                           0x3257c788 -[UISearchBar _didMoveFromWindow:toWindow:] + 152
2   UIKit                           0x3249a576 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 662
3   UIKit                           0x3249a576 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 662
4   UIKit                           0x324bb5e2 -[UIScrollView _didMoveFromWindow:toWindow:] + 46
5   UIKit                           0x3249a576 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 662
6   UIKit                           0x3249a576 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 662
7   UIKit                           0x3249a576 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 662
8   UIKit                           0x3249a576 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 662
9   UIKit                           0x32499e68 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 108
10  Foundation                      0x30688d98 -[NSISEngine withBehaviors:performModifications:] + 208
11  UIKit                           0x32499cf2 -[UIView(Hierarchy) _postMovedFromSuperview:] + 294
12  UIKit                           0x324a6998 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1400
13  UIKit                           0x324a6412 -[UIView(Hierarchy) addSubview:] + 26
14  UIKit                           0x32587d8a -[UITransitionView transition:fromView:toView:removeFromView:] + 974
15  UIKit                           0x32587998 -[UIViewControllerBuiltinTransitionViewAnimator animateTransition:] + 444
16  UIKit                           0x32587406 __101-[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:]_block_invoke_2 + 1250
17  UIKit                           0x3251afb6 _applyBlockToCFArrayCopiedToStack + 314
18  UIKit                           0x324931ee _afterCACommitHandler + 426
19  CoreFoundation                  0x2fcf31ca __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
20  CoreFoundation                  0x2fcf0b6c __CFRunLoopDoObservers + 280
21  CoreFoundation                  0x2fcf0eae __CFRunLoopRun + 726
22  CoreFoundation                  0x2fc5bc22 CFRunLoopRunSpecific + 518
23  CoreFoundation                  0x2fc5ba06 CFRunLoopRunInMode + 102
24  GraphicsServices                0x3493a27e GSEventRunModal + 134
25  UIKit                           0x324ff044 UIApplicationMain + 1132
26  Housing India                   0x000a2606 main (main.m:16)
27  libdyld.dylib                   0x3a592ab4 start + 0
役に立ちましたか?

解決

で、万が一の場合を考えて、この助けになっていますよ。

この問題はiOSの枠組みの問題があったとUINavigationControllerの実施。の衝突で起きていることについての枠組みそのものです。き出したインスタンスを生成する、ナビコントローラー、を提示します。この減少、たないその他のオプションです。Apple、Appleのロゴは、本当にそうなのが多くの制約や前提をアップデート。P

説明: しに必要とされるナビゲーションコントローラモーダルアニメーションまた回避しようとすると、インスタンス生成のコントローラーもスをインスタンス化しまうのを再利用します。しかし、この動きを観察するため、衝突起きていを受けます。などかのクラッシュとは、固定でスをインスタンス化します。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top