我应该为ios 4还是ios 5开发? [英] Should i develop for ios 4 or ios 5?

查看:73
本文介绍了我应该为ios 4还是ios 5开发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得我的问题很简单。我正在创建一个非常简单的应用程序,它不使用来自ios 5的任何花哨的新东西。
然而编程ios 5应用程序似乎更容易,因为内存管理可以设置为自动。
我获得SDK没有问题,我有两个和两个模拟器。它只是我的编程和应用程序未来发展的问题。
如果我没记错的话,我读到的地方有近40%的iphone运行ios5,大多数ipads也运行在ios 5上。因此,我不应该失去很多有潜力的客户/下载者,不是吗?无论如何,自动内存管理感觉不对。喜欢我不应该使用的东西..什么是不对的..



我的问题是,我应该为ios 4或ios 5开发吗?
我欢迎每个人的个人意见。

解决方案

我认为大多数用户确实将iOS版本升级为5.0这是主要的iOS版本,并具有许多新功能。



所以基本上我建议您使用iOS 5进行开发,并且仍然可以使应用程序与iOS 4用户兼容。



此外,最好在开发阶段使用最新版本的iOS,以确保在更新阶段不会留下许多变化。



我们知道自动引用计数(ARC)这是iOS 5中的一个非常好的功能,几乎所有垃圾收集工作都在Objective-C代码中。



但是仍然ARC应用程序在iOS 4中运行得非常好。



iOS 4中也支持ARC 。所以我不认为这应该是一个问题,因为开发一个应用程序是iOS 5与iOS 4版本的向后兼容性。



示例: 此外,如果您认为自己拥有内置且易于在iOS 5中集成的Twitter等功能,您仍然可以有条件地检查设备iOS版本并仍然可以在iOS 4中使用,如:

  if([[[[UIDevice currentDevice] systemVersion] floatValue]> = 5.0f)
{
/ /使用iOS 5中的内置Twitter类集成Twitter。
}
else if([[[[UIDevice currentDevice] systemVersion] floatValue]< 5.0f&& [[[UIDevice currentDevice] systemVersion ] floatValue]> 4.0f)
{
//像在iOS 4.0中一样集成Twitter SDK并使其工作。
}

如果您需要更多帮助,请告诉我。



希望这会有所帮助。


my question is simple i think. I am creating a really simple app which doesnt use any of the fancy new things from ios 5. Yet programming ios 5 app seems a bit easier since memory management can be set to automatic. There is no problem for me getting the SDK, i have both and both simulators. Its merely a question of future advancement of my programming and the app. If i recall correctly, i read somewhere that almost 40% of iphones run ios5 and most of ipads run on ios 5 too. So i shouldnt be loosing much potentional customers / downloaders due to it, should i? Anyway the automatic memory management feels wrong. Like something i shouldnt use.. What is not right to do..

My question is, should i develop for ios 4 or ios 5? I welcome everyones personal opinion.

解决方案

I think as most of the users do upgrade the iOS version to 5.0 as this is major iOS version and has many of the new features.

So basically I would recommend that you use iOS 5 for development and still can make the application compatible to iOS 4 users.

Also it is always better to work on the latest version of iOS in development phase, just to make sure you don't leave many changes in update phase.

As we know Automatic Reference Counting (ARC) which is a very nice feature in iOS 5 which does almost all garbage collection work in objective-C code.

But still ARC apps do run perfectly fine in iOS 4 as well.

ARC is supported in iOS 4 as well. So I don't think that should be an issue as far as developing an app is iOS 5 with backward compatibility to version iOS 4 is concerned.

Example : Also, in case where suppose you have a feature like Twitter which is in-built and easy to integrate in iOS 5, you can still check the device iOS version conditionally and still make it work in iOS 4 like:

if([[[UIDevice currentDevice] systemVersion] floatValue]>=5.0f)
{
    // Integrate Twitter using in-built Twitter classes in iOS 5.
}
else if([[[UIDevice currentDevice] systemVersion] floatValue]<5.0f && [[[UIDevice currentDevice] systemVersion] floatValue]>4.0f)
{
    // Integrate the Twitter SDK as we did in iOS 4.0 and make it work.
} 

Let me know if you need more help.

Hope this helps.

这篇关于我应该为ios 4还是ios 5开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆