iOSでNotifyを出したいとおもって
UILocalNotification *notification = [[UILocalNotification alloc] init];
notification.fireDate = [NSDate dateWithTimeIntervalSinceNow:7];
notification.alertBody = @"This is local notification!";
notification.timeZone = [NSTimeZone defaultTimeZone];
notification.soundName = UILocalNotificationDefaultSoundName;
notification.applicationIconBadgeNumber = 10;
のコードをかきました。
これで一応動作はするのですが
このメッセージをクリックするとアプリそのものが表示されます。
そうではなくて
例えばMAPが出るようにしたいのです。
これです。
NSURL *url = [NSURL URLWithString:@"http://maps.apple.com/"];
[[UIApplication sharedApplication] openURL:url];
このメッセージをクリックした時の動きはどうすれば取得でしますか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/02/14 09:12