iOSにアラームを鳴らしています。ローカル通知を使用して、アラーム音をスケジュールして渡したいと考えていました。
現在のコードは次のようなものです。
UILocalNotification *localNotification = [[UILocalNotification alloc] init]; /
[localNotification setFireDate:fireDate];
[localNotification setAlertAction:@"View"];
[localNotification setAlertBody:[alertBodyField text]];
[localNotification setHasAction: YES];
[localNotification setSoundName:@"sound.wav"];
[localNotification setApplicationIconBadgeNumber:[[UIApplication sharedApplication] applicationIconBadgeNumber]+1];
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
iOS 5.0 ではうまく動作します。画面の中央にボタン付きのウィンドウが表示され、ユーザーの操作があるまでそこに留まるためです。
iOS 6.0 では、通知が画面の上部に表示され、ボタンの存在が許可されませんでした。この変更について知っている人はいますか?