在我的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