CustomCell을 사용하여 UITableView를 만들었습니다. 로컬 알림이 생성되고 테이블보기가 업데이트 된보기 상단의 버튼을 클릭 할 때 앱이 실행 상태가 아닌 경우 알림이 배너에 표시됩니다. 배너 해당 업데이트 된 UItableviewcell을 시작하는 방법. 키 UIApplicationLaunchOptionsLocalNotificationKey에 의해, 옵션 사전에 : didFinishLaunchingWithOptions : 실행되지 않은 응용 프로그램, 당신은 응용 프로그램에서 지역 알림을 받게됩니다 경우 배너를 클릭하면 ...알림을 클릭하면 UITableViewCell에서 해당 콘텐츠가 표시됩니까?
1
A
답변
1
을 도와 드릴까요. 따라서 앱 시작시이 키를 확인하고 로컬 알림이있는 경우 적절한 셀을 표시해야합니다.
0
application : didFinishLaunchingWithOptions 메서드를 사용하여 UILocalNotification을 받고이 메서드에서 NSNotification을 게시 할 수있는 테이블 뷰를 업데이트 할 수 있습니다.
0
sha007 @, 귀하의 경우 응용 프로그램 시작에, 당신은 ...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIRemoteNotificationTypeBadge
|UIRemoteNotificationTypeSound
|UIRemoteNotificationTypeAlert) categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
// Handle launching from a notification
UILocalNotification *localNotif =
[launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
if (localNotif) {
NSLog(@"Handle launching-> Recieved Notification ");
localNotif.applicationIconBadgeNumber = 0;// set here the value of badg
dicttemp=[NSDictionary new];
dicttemp=[NSDictionary dictionaryWithObject:[localNotif.userInfo valueForKey:@"sent"] forKey:@"sent"];
//Here you can get dictionary from Local Notification(eg.localNotif.userInfo) & using it , Navigate to View Controller & then Reload Data ..
}
return YES;
}
& 당신이 Foregroung 모드의 실행은 다음 코드 아래 사용을 의미 응용 경우, 코드 아래에 작성해야
- (void)application:(UIApplication *)app didReceiveLocalNotification:(UILocalNotification *)notif {
// Handle the notificaton when the app is running
NSLog(@"Handle the notificaton when the app is running -> Recieved Notification %@",notif);
notif.applicationIconBadgeNumber = 0;// set here the value of badge
dicttemp=[NSDictionary new];
dicttemp=[NSDictionary dictionaryWithObject:[notif.userInfo valueForKey:@"sent"] forKey:@"sent"];
}
관련 문제
- 1. 한 페이지에 여러 콘텐츠가 표시됩니까?
- 2. 버튼을 클릭하면 PopupWindow가 표시됩니까?
- 3. 클릭하면 keyCode가 표시됩니까?
- 4. uitableview 셀을 클릭하면 해당 셀의 텍스트가 굵게 표시됩니까?
- 5. 클릭하면 UITableViewCell에서 더 많은 텍스트가 펼쳐지고 표시됩니다.
- 6. 알림을 클릭하면 활동이 업데이트됩니다.
- 7. 클릭하면 어떻게하면 버튼이 창이 표시됩니까?
- 8. 같은 버튼을 클릭하면 메시지가 표시됩니까?
- 9. Dock 아이콘을 클릭하면 어떻게 표시됩니까?
- 10. Google 검색 결과에 오래된 사이트 콘텐츠가 표시됩니까?
- 11. 버튼을 클릭하면 안드로이드 Webview 콘텐츠가 이동합니다.
- 12. 번쩍이기 알림을 클릭하면 앱이 실행됩니다.
- 13. 알림을 클릭하면 json 객체가 반환됩니다.
- 14. 알림을 클릭하면 활동 다시 시작
- 15. android에서 알림을 클릭하면 다운로드를 시작합니다.
- 16. 알림을 클릭하면 Firebase onMessageReceived가 호출됩니다.
- 17. 아이콘 위로 마우스를 가져 가면 아래의 특정 콘텐츠가 표시됩니까?
- 18. 버튼을 클릭하면 콘텐츠가 메인 콘텐츠 영역에로드됩니다.
- 19. jquery가있는 링크를 클릭하면 div 콘텐츠가 변경됩니까?
- 20. 두 이미지 - 이미지를 클릭하면 다른 이미지가 표시됩니까?
- 21. 클릭하면 마우스를 올려 놓을 때 텍스트가 표시됩니까?
- 22. 사용자가 링크를 클릭하면 플래시 메시지가 표시됩니까?
- 23. 클릭하면 문자열에 jquery check href가 표시됩니까?
- 24. link_to를 클릭하면 새 페이지에서 플래시 메시지가 표시됩니까?
- 25. ImageView를 클릭하면 말풍선 형식 옵션보기가 표시됩니까?
- 26. 버튼을 클릭하면 모노로드에서로드 대화 상자가 표시됩니까?
- 27. 마우스 가운데 버튼을 클릭하면 Jquery 경고가 표시됩니까?
- 28. Appcelerator : GCM을 사용하여 알림을 받고 해당 알림을 앱에 엽니 다.
- 29. 팝업 문제 : 적절한 해당 콘텐츠가 표시되지 않음
- 30. 내 콘텐츠가 해당 콘텐츠를 감싸는 이유가 무엇입니까
답변 해 주셔서 감사합니다 ..... 이걸 시도하려고합니다 .... – sha007
@ sha007..best of luck..keep coding – Mehul