views:

82

answers:

2

Dose method -application:didFinishLaunchingWithOptions: run in ios 2.0? -application:didFinishLaunchingWithOptions: is a delegate method in ios3.0 and later, Will it be wrong in ios 2.0?

A: 

(Who are still using 2.x? o_O)

In OS 2.x the system won't know there's a -application:didFinishLaunchingWithOptions: method, so it will never be called. The app will not crash because of this, just that the method is ignored.

Implement also -applicationDidFinishLaunching: for 2.x compatibility.

KennyTM
A: 

This will not run in ios 2.0. "didFinishLaunchingWithOptions" only in 3.0 and later.

Use this method to initialize your application and not the applicationDidFinishLaunching: method.

iPhoneDev
thank you,i understand