許可の検索方法(アプリを起動すると表示される)のデフォルトの動作を変更できますが、ユーザーがサインアップされたときに表示したい場合は、 M私のappDelegateでこれを行う:通知を求める(アプリケーション起動後ではなく)
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let notificationSettings = UIUserNotificationSettings(
forTypes: [.Badge, .Sound, .Alert], categories: nil)
application.registerUserNotificationSettings(notificationSettings)
return true
}
以下のようにユーザーをお願いしたいと思います別のクラスに配置することができますサインアップ画面の後に表示されます! – Lion