iPhone

How To Add “Fast App Switching” To Your iPhone App in iOS 4

iPhones 4 and iOS 4 introduce Apple’s take on multitasking applications. We can now “freeze” or “background” our apps so that when the user quickly switches between apps, our’s will return in the same state we left it.

I had a little trouble getting this done, but in the end it’s REALLY easy.

4.0 introduces a new project property in the info.plist called UIApplicationExitsOnSuspend. The default value for this boolean property is false. All you may need to do is recompile your application and check it out on an iOS 4 device.

image

If you find it’s not working, confirm the SDK settings both at the project level and at the target level. Your base SDK should be 4.0, and your target SDK should be whatever your lowest target device is. Of course, lower versions of the OS that don’t support multitasking will simply ignore this setting.

Also make sure your SDK settings are consistent between the project and the target settings.

image

image

To take multitasking even further, there are additional methods available where we should put any code we want to execute when the app goes into the background or returns to an active state, such as:

- store/restore state
- start/stop background processes

Check out:

https://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html

application:didFinishLaunchingWithOptions
applicationDidBecomeActive
applicationWillResignActive
applicationDidEnterBackground
applicationWillEnterForeground
applicationWillTerminate


Categories: iPhonePermalink

White Paper Bible iPhone App NOW AVAILABLE

I’m thrilled to announce my iPhone app is now available on the App Store. This personal project has been a huge learning experience full of ups and downs, but mostly of flat, long, patient waiting.

There are a great many fantastic Bible applications in the App Store today. What makes WPB unique is the manner in which it allows you to distill and consume your A-List scriptures that are powerful for the exact moment you are in, not matter where you are. It is at once your Topical Bible and God’s Promises scriptures on the go.

With WPB you choose from an ever growing collection of topical scripture lists, or you make your own. As you discover new verses that speak directly to you, then add them to your paper no matter wherever you are.

If this sounds like something you’re interested in, or if you just want to do me a solid and spread the word, please check it out. I’m very satisfied to have come this far, and look forward to many future releases of this product.

White Paper Bible

http://www.whitepaperbible.org

White Paper Bible iPhone App

app.whitepaperbible.org

White Paper Bible on Twitter

twitter.com/whitepaperbible

White Paper Bible on Facebook

http://www.facebook.com/pages/White-Paper-Bible/128636440822


Categories: iPhonePermalink
blog comments powered by Disqus