iOS UIKit-UIViewController的SDK中下面方法:
/*
Removes the the receiver from its parent's children controllers array. If this method is overridden then
the super implementation must be called.
*/
- (void)removeFromParentViewController NS_AVAILABLE_IOS(5_0);
該方法在iOS 8.1中是立即釋放controller,而在iOS 9(包括) 之后則是延遲釋放controller。
因為只有安裝了iOS 8.1的系統,所以不確定是否是iOS 8.1的個例,還是iOS 9之前都是立即釋放。個人猜測應該是iOS 9之前都是立即釋放,具體有待考證。