ios3.0

SDK and iOS Deployment Target.

百般思念 提交于 2019-12-04 11:58:49
问题 I build my project with the latest SDK (4.1) and set "iOS Deployment Target" (3.0). Can I run my project on a real iPhone 3.0 if I use some methods of 4.0 sdk? 回答1: You can only run your project on OS 3 devices if you conditionally code around the OS 4 methods you want to use. If you called a method that only existed in iOS 4 on an iOS 3 device your app would crash. You can do this through both checking iOS version numbers and using the [... respondsToSelector:] method. 来源: https:/

What is the alternative of [NSBundle mainBundle] URLForResource:withExtension: in iOS 3 SDK

拈花ヽ惹草 提交于 2019-12-03 16:04:53
I am developing an iOS app using iOS 4.2 SDK, but I want the app to run on older devices like my iPhone 2G with iOS 3.1.3. I don't know what is the alternative for this code: NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"CoreDataApp" withExtension:@"momd"]; It crashes on my device, because the URLForResource:withExtension: method is iOS 4+. Please help. Thanks. its - NSURL *aFileURL = [NSURL fileURLWithPath: [[NSBundle mainBundle] pathForResource:path ofType:@"aif"]]; You can obtain path to your resource using pathForResource:ofType: method and then convert that path to URL using

SDK and iOS Deployment Target.

醉酒当歌 提交于 2019-12-03 07:51:25
I build my project with the latest SDK (4.1) and set "iOS Deployment Target" (3.0). Can I run my project on a real iPhone 3.0 if I use some methods of 4.0 sdk? You can only run your project on OS 3 devices if you conditionally code around the OS 4 methods you want to use. If you called a method that only existed in iOS 4 on an iOS 3 device your app would crash. You can do this through both checking iOS version numbers and using the [... respondsToSelector:] method. 来源: https://stackoverflow.com/questions/4700013/sdk-and-ios-deployment-target

IOS3 Compatible App in IOS4 Mutlitasking

牧云@^-^@ 提交于 2019-12-01 10:11:39
This is a follow on from IPhone App Submission Issues If I have a IOS3 compatible app, how does it handle in IOS4 in regards to Multitasking? i.e. When the IOS3 app is closed on an IOS4 phone and than they reopen it, will it restart or is it backgrounded/multitasked and when reloaded taken to where the user just was? Does anyone have advice on how i should go about this? I need to convert my current IOS4 compatible app back so that it is compatible with IOS3 quickly. Thanks If you compile an app using the 4.x SDK but with a deployment target of 3.x, then when running under iOS 4.0, suspend

IOS3 Compatible App in IOS4 Mutlitasking

眉间皱痕 提交于 2019-12-01 09:16:54
问题 This is a follow on from IPhone App Submission Issues If I have a IOS3 compatible app, how does it handle in IOS4 in regards to Multitasking? i.e. When the IOS3 app is closed on an IOS4 phone and than they reopen it, will it restart or is it backgrounded/multitasked and when reloaded taken to where the user just was? Does anyone have advice on how i should go about this? I need to convert my current IOS4 compatible app back so that it is compatible with IOS3 quickly. Thanks 回答1: If you