开发者

How to create and push DetailView of a update feed item in navigationController stack when action button in notification is clicked?

I am working with a nav based app. which parse a feed and shows data in tableView. every cell in tableView creates a DetailView when its clicked. I am working now with push notifications. My question is that when i get a notification, it has two buttons, view and ok. when i click on view, it launches the app. but shows the tableView which is not updated. I want my app to parse the feed again and show the new ite开发者_开发知识库m's detailView when i click on view. is it possible? if it is then how can i do that? i tried to parse feed again and create a detailView in application:didFinishLaunchingWithOptions: but i couldn't. Can any body tell me how to do that? thanx


I think you want to implement

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo;

Inside the userInfo dictionary should be the details you pass, hopefully providing what you need to present the detail view.

I am not sure what you mean by "i couldn't" but you do have to tell your TableView to "reload" once its been presented. Without some source code, its difficult to diagnose the exact problem. Best of luck!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜