0

我听说这可能有一些问题,但还没有找到任何官方公告。是否可以向 AppStore 发布新版本的应用程序,以前版本支持 iOS 5.1,而新版本仅支持 iOS 6.0?

4

3 回答 3

2

完全没有问题。只需更改项目的部署目标设置并提交更新。在过去 4 年中,人们通过更改 iOS 的最低支持版本来更新应用程序。

于 2012-11-01T17:14:58.700 回答
2

大多数更改涉及已过时的语法,xCode 的自动更正/终端将为您提供新需要的方法等。希望这可以帮助。

于 2012-11-01T17:17:42.103 回答
0

我只知道:以新方式处理方向...这将在旧代码中进行更改...

// iOS 5 interface orientation handling
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
    return (toInterfaceOrientation == UIInterfaceOrientationPortrait);
}

//iOS6 interface orientation handling

- (BOOL)supportedInterfaceOrientations {
    return UIInterfaceOrientationMaskPortrait;
}

- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{

}

不推荐使用 should rotate 方法,并且从 iOS 6 开始将不再调用,但无论如何它并不意味着以您使用它的方式使用。

于 2012-11-01T17:16:52.630 回答