0
提取從self.window視圖在我:在Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions:
我設置以下scrollView
:
UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:screenRect];
[self.window addSubview:scrollView];
在以後的方法,我怎麼會那麼毀了這個觀點,也就是從self.window
中刪除它。
我假設你已經嘗試存儲對它的引用並調用它'removeFromSuperview'? – Undo 2014-10-04 20:55:33