What should I buy an iPad or iPhone 4 for iPhone SDK 4?

Now I am developing on the iPhone SDK3 and iPodTouch 2G. iPodTouch 2G cannot perform the full iOS4 function. I want to change the development of the iPhone SDK4. In July, iPhone 4 and iPad will be available in Singapore. So, what should I buy an iPad or iPhone 4 for iPhone SDK 4?

What is the difference between the iPad API and the iPhone 4 API? How about the market? Can I write an iPhone app with an iPad?

+1
source share
3 answers

Each OS version has the same API for all devices, but some of them do not support all functions. For example, UIImagePickerController allows the user to select a photo. On the iPhone, they can take a picture with the camera or select an existing photo from their photo library. There is no camera with the iPad and iPod Touch, so the user can only select a photo from their Photo Library.

If you rely on hardware features such as a camera, compass, gyroscope, accelerometer for your application, you will need a device that has this function because the emulator does not.

iPhone 4 iPhone, iPod Touch iPad. iPhone 4 , , iAd.

, . iPhone 3GS iOS 4.0, .

+4

iPad iOS 3.2. Apple , 4.0 iPad "Fall" (aka Autumn). , 4.0 ( ), iPhone 3GS 4.

+3

ObjectiveC, , , . , , , , . , iPad 6- . , API ( ). , , , , 3gs Iphone IPad. Ipad - , Iphone, iPhone ( ) IPad ( , iPad).

In the summary. If you only want a device for development, I would buy an iPad, since you can develop and test iPad and iPhone applications, so it is much more universal. If you have an iPhone, forget about testing iPad applications, as you do not have enough permission.

Hope this helps.

0
source

Source: https://habr.com/ru/post/1765635/


All Articles