Use method "didFinishLaunchingWithOptions" since iOS 5.