ios - 升级iOS应用程序

标签 ios objective-c cocoa-touch ios5 ios4

我想将现有应用升级到 iOS 5.0 及更高版本。

我想要关于要点的建议和详细指南。 我应该对现有代码进行哪些更改才能使其完全 兼容新的 iOS 编码标准。

例如

  • 我应该更改所有外部框架和我的自定义类吗 使其兼容 ARC?
  • 我应该对 sqlite 数据库创建进行更改。
  • 我应该更换 Twitter 和 Facebook 的旧框架吗?
  • 我应该对图形进行哪些更改?

简而言之,请提供对于使旧应用程序完全兼容新 iOS 标准非常重要的指南和建议。

Guys thanks for providing your comments & reply for this question.

By Looking at your response, I think you guys are only focusing on the above given points. I want general suggestions from your experience. i.e. what things we should change in info.plist, what changes should be done in graphics. how we can improve app by adding automatic ARC support etc ...

Main thing is how we can make it compatible for different resolutions of iPhone / iPad (i.e. for iPhone 5 and other devices).

如果可能,请提供图形更改指南 新 iPhone 5 设备和 iPad Mini 设备的分辨率。

我们将非常感谢您的帮助/建议/指导!

最佳答案

Should I change all external frameworks and my custom classes for making it compatible for ARC?

这完全取决于你。 ARC 是一项编译时功能,旨在避免手动内存管理任务。它并不能通过任何想象力消除它,但它比我们作为程序员大多数时候希望编写的任何东西都要安全得多。可以在应用程序中混合 ARC 和非 ARC 框架和库。

I should make changes into sqlite database creation.

iOS 始终附带 libSQLite3,因此您完全不需要“升级”应用程序的这一方面。您可能会考虑迁移到核心数据,因为它再次避免了与 SQLite 的大部分交互。

Should I replace old framework of Twitter & Facebook?

同样,这取决于情况。如果您计划支持不附带新 iOS 社交功能和框架的旧操作系统,那么我会保留原样。新的 API 比访问每个给定社交服务的实际 API 的限制要大得多,但它也更容易实现,尤其是对于简单的墙贴之类的事情。

What kind of changes I should do with Graphics?

图形文件必须(最佳)有两种风格,并为新 iPhone 提供可选的第三种格式:标准、视网膜和拉伸(stretch)视网膜。虽然选择视网膜图形是完全可选的,但建议您提供高分辨率资源以提供最佳的用户体验。对于实际的图形库(CoreGraphics),框架处理绘制到屏幕上的元素的缩放。

关于ios - 升级iOS应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15309666/

相关文章:

ios - Objective-c 中的 const 修饰符

iphone - 使用淡入淡出动画重绘 UIView?

iphone - 使用 NSSortDescriptor 像 NSInteger 一样对 NSString 值进行排序

ios - iOS开发中的社交网络集成哪个更好?

ios - 我想在 iOS tableview 中实现分页

iphone - 在 iPhone 应用程序的 map 上通过适当的图标显示酒店(和附近的地方)

iphone - 如何找出其他哪些 UIScrollView 干扰了 scrollsToTop?

ios - 无法启动设备,因为它不能位于磁盘上

ios - 如何在Xcode 4中支持自定义完成字典

ios - 当与 UILocalNotification repeatInterval 一起使用时,NSMonthCalendarUnit 和 NSYearCalendarUnit 的行为如何?