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
2010-08-02 06:50:56
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
2010-08-02 06:52:01
thank you,i understand
2010-08-04 04:51:00