알람 시간 평행에 울리는 때 UILocalNotification 으로 나는 사용자 정의보기를 열고 자.
동일한 코드에 다음 코드를 사용하고 있습니다.
알람이있는보기를 여는 방법은 무엇입니까?
UILocalNotification *notification = [[UILocalNotification alloc] init];
if (notification == nil)
return;
NSDate *dt = [NSDate dateWithTimeInterval:10 sinceDate:[NSDate date]];
notification.fireDate = dt;
notification.timeZone = [NSTimeZone defaultTimeZone];
notification.alertBody = @"After 10Secs...";
notification.alertAction = @"View";
[[UIApplication sharedApplication] scheduleLocalNotification:notification];
이 코드로만 알림이 실행됩니다.
당신이 명확히 수하시기 바랍니다에 대한 광범위한 프로그래밍 가이드가 있습니다. 사용자 정의보기를 말할 때. 알림이 사용자 정의보기임을 의미합니까, 아니면 알림이 탭되면 사용자 정의보기가 앱에서 표시됩니까? –
@Naughty_Ottsel 예, 알림은 사용자 정의보기입니다. 또는 가능한 경우 알림을 탭하면 사용자 정의보기가 열립니다. – shahnilay86