iPhone Application Developer – iPhone Developer Labs – iPhone Application Development

iPhone application developer resource – application development, updates & news for iphone developers

Posts Tagged ‘iPhone Development tips’

Another 4th Generation iPhone Finds its Way to Market

May 12th, 2010 by Saptarshi Roy Chaudhury 2 comments »

While iPhone developers like us are speculating on what could be the new features for the next generation iPhone, it seems some of the 4th generation iPhone prototype are finding their way to market – one way or the other. A few days back Gizmodo reported such an incident and today another 4th generation iPhone prototype was reported in Vietnam.

This one seems to be a little different from the one seen during the Gizmodo incident as it does not have the screws at the bottom, also it is marked as a 16 GB device. Its a pre-production model and has several placeholders on it, however, the front facing camera seems to be a pretty sure thing.

The photos appear at TaoViet.vn and rumors are that a Vietnamese businessman bought this one in USA along with an iPad.

From the perspective of an iPhone developer, I am already excited to think about the various possibilities with this new iphone with camera. This camera can definitely play a pivotal role for various iPhone apps and this is sure to take iPhone app development to a new height.

Tags: iphone 4.0, iphone 4th generation, iPhone Development tips, iphone prototype

Effective ways of handling Interruptions in iPhone App Development

August 18th, 2009 by Ravi Korukonda 8 comments »

It is a known and acknowledged fact that user’s experience with your iPhone app is of paramount importance in keeping them glued to it. Towards that, handling interruptions gracefully in an iPhone app plays a key role.

iPhone being a “one app at a time” device, apps get interrupted by incoming Phone Calls, SMSs, Calendar Events, Alarms or Push Notifications from other apps on the device.
The iPhone SDK provides a few methods in UIApplicationDelegate which can be implemented to handle the interruptions and keep user’s experience as flawless/seamless as possible.

The Interruption
- (void)applictaionWillResignActive:(UIApplication*)application

This method lets your application know that it is about to be interrupted by the iPhone OS. The name of the method suggests that your app will no longer be active, and will not respond to any user actions until the interruption is taken care of. An interruption like an incoming phone call or an SMS can either be accepted or dismissed by the user, and this is where you have to perform all tasks necessary to resume if the user chooses to leave the application. If the app was a game, it could save any game state needed for a resumption later.

The Resumption / Interruption Dismissed
- (void)applicationDidBecomeActive:(UIApplication*)application

When your application is about to become active again, this method is called by the iPhone OS. If the user decides not to leave the application and dismisses the interruption this is a good place to allow the user resume using the application. Since the application has not yet been closed, all the required state to resume is still in memory and continuing using the app is really as simple as a Pause/Resume feature.

The Interruption Accepted
- (void)applicationWillTerminate:(UIApplication*)application

If the user decides to leave the application or accepts an interruption, this method call from the iPhone OS notifies us of that intention. This is the place where you save all necessary state of the app/game to resume later.

The best place to save all game/app state to resume later is “applicationWillResignActive”. The simple reason being, all iPhone interruptions need user’s input to either accept or dismiss the interruption. This action from the user might needs a few seconds of his/her time to understand what the interruption is and what to do with it. This duration should be just enough for a well written application to save all state. Whereas, in the case of the application being closed by the user, iPhone OS wouldn’t wait for the app to complete saving state. The time available is really short and many applications might fail to save state.

Since there are multiple reasons and ways for an app being closed, state saving method calls need to be placed both in “applictaionWillResignActive” and “applictaionWillTerminate”. But ensure you don’t waste precious time in saving app state at both places. If the user closes the application by pressing the “Home” button, use “applictaionWillTerminate” to save state and necessary cleanups. If the application is being closed due to an interruption, save state in “applictaionWillResignActive” and perform any necessary cleanup in “applictaionWillTerminate”.

So, make it a point to use various UIApplicationDelegate methods to maintain user experience and reusability of the app. Keep your users glued to your application or game and return to it after an interruption.

For more tips and strategies on iPhone App Development, click here. For iPhone app marketing tips, try this link.

Tags: iPhone App Development, iPhone Development help, iPhone Development tips, iPod Touch Development tips

iPhone development tip for iPhone OS 3.0.1

August 13th, 2009 by Ravi Korukonda 4 comments »

Many of my friends woke up to a rude shock when they found that their devices updated to iPhone OS 3.0.1 were not supported by iPhone SDK 3.1 Beta 3 for development.

If you too are experiencing the same problem, here is the solution to continue iPhone development with iPhone SDK 3.0 for your iPhone running iPhone OS 3.0.1.

1. Log-in to your MAC with an Admin account and launch the Terminal application (You will find it in /Applications/Utilities)
2. Copy and Paste the following line into the Terminal window
ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1

Note: If you have not installed iPhone SDK 3.0 in the default location “/Developer”, replace the “/Developer” directory in the above line as appropriate.

You can download the iPhone 3.0.1 Advisory guidelines document from iPhone Dev Portal

Tags: iPhone 2G, iPhone 3G, iPhone 3Gs, iPhone Development help, iPhone Development tips, iPhone OS, iPhone OS 3.0.1
© 2011 iPhone Application Developer – iPhone Developer Labs – iPhone Application Development
iPhone Development Labs, iPhone Development Help, iPhone Development Tips
Back to Top