Câu hỏi được gắn thẻ «uilocalnotification»


5
Yêu cầu sự cho phép của người dùng để nhận UILocalNotutions trong iOS 8
Tôi đã thiết lập thông báo cục bộ trong Đại biểu ứng dụng bằng cách sử dụng: - (void)applicationDidEnterBackground:(UIApplication *)application { UILocalNotification *notification = [[UILocalNotification alloc]init]; [notification setAlertBody:@"Watch the Latest Episode of CCA-TV"]; [notification setFireDate:[NSDate dateWithTimeIntervalSinceNow:5]]; [notification setTimeZone:[NSTimeZone defaultTimeZone]]; [application setScheduledLocalNotifications:[NSArray arrayWithObject:notification]]; } Khi tôi chạy ứng dụng và sau …


Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookie và Chính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.