控制器modal之間的關系
// a modal 出 b
[a presentViewController:b animated:YES completion:nil];
a.presentedViewController -> b;
b.presentingViewController -> a;
一般情況下,modal出來的控制器會占據整個螢幕,而後面的控件都會被系統自動給移除掉,但有的時候我們并不想讓它們被移除掉,那我們可以設定modal的style為Custom來解決這個問題
b.modalPresentationStyle = modalPresentationStyleCustom