在我的iOS應用程序,其中的一部分是視頻播放器(使用YouTube API)。我決定在代碼中使用滾動視圖來佈置此視圖,以確保視圖在所有旋轉中的iPad版本應用中正確佈置。在繼續之前,這裏是我編寫子視圖的代碼。每當我的觀點出現在屏幕上時,我都會打電話給他 - (void)setupView {
// Set up Open in YouTube App button
self.openInYo
在iOS 5及6我在viewWillAppear中的方法在我的視圖控制器這樣做: UIViewController *c = [[UIViewController alloc] init];
//To avoid the warning complaining about the view not being part of the window hierarchy
[[[TWNavigati