2016-04-13 17 views
0

を使用する場合は、外部未解決:私は私の迅速なアプリの通知を設定しようとしていますし、私はこれを入力するとregisterForLocalNotifications

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 
    //Tell the app to ask the user for permission 
    registerForLocalNotifications() 
    return true 

} 

それはUse of unresolved identifier 'registerForLocalNotifications'を返します。

すべてのアイデア?

答えて

0

ExternalAccessoryフレームワークに属する関数を、自分のクラスの関数であるかのように呼び出しています。私はあなたが必要だと思う

...

その後
import ExternalAccessory 
あなたの輸入の中

...と...

EAAccessoryManager.sharedAccessoryManager().registerForLocalNotifications() 
関連する問題