fix  [[UIApplication sharedApplication] keyWindow] is nil before window -makeKeyAndVisible