Objective c 是否在打开通知警报后加载web视图?

Objective c 是否在打开通知警报后加载web视图?,objective-c,uiwebview,push-notification,uialertview,url-redirection,Objective C,Uiwebview,Push Notification,Uialertview,Url Redirection,我制作了一个RSS应用程序,它工作得很好,我还添加了推送通知支持,到目前为止一切都很好,我将标题、警报和url作为一个额外字段传递 当我的通知到达时,我显示我的警报,您有两个选项“Thanx | Open” 我现在要做的是,当您从此警报单击“打开”时,我需要将用户重定向到具有UIwebview的视图,并加载我随通知一起传递的url 有人能帮我吗 这是我的密码: // here is my app delegate -(void)onReceivePushNotification:(N

我制作了一个RSS应用程序,它工作得很好,我还添加了推送通知支持,到目前为止一切都很好,我将标题、警报和url作为一个额外字段传递

当我的通知到达时,我显示我的警报,您有两个选项“Thanx | Open”

我现在要做的是,当您从此警报单击“打开”时,我需要将用户重定向到具有UIwebview的视图,并加载我随通知一起传递的url

有人能帮我吗

这是我的密码:

// here is my app delegate 

    -(void)onReceivePushNotification:(NSDictionary *) pushDict andPayload:(NSDictionary *)payload {
        [payload valueForKey:@"title"];
        UIAlertView *message = [[UIAlertView alloc] initWithTitle:@"New Alert !" message:[pushDict valueForKey:@"alert"] delegate:self cancelButtonTitle:@"Thanks !" otherButtonTitles: @"Open",nil];

        NSLog(@"message was : %@", [pushDict valueForKey:@"alert"]);
        NSLog(@"url was : %@", [payload valueForKey:@"url"]);
        [message show];
    }
    -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
    {
        NSString *title = [alertView buttonTitleAtIndex:buttonIndex];
        if([title isEqualToString:@"Open"]) {
            [[Pushbots getInstance] OpenedNotification];
            // Decrease Badge count by 1
            [[UIApplication sharedApplication] setApplicationIconBadgeNumber:[UIApplication sharedApplication].applicationIconBadgeNumber -1];
            // Decrease badge count on the server
            [[Pushbots getInstance] decreaseBadgeCountBy:@"1"];

            [[NSNotificationCenter defaultCenter] postNotificationName:@"updateRoot" object:nil];
        } else {
            // set Badge to 0
            [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
            // reset badge on the server
            [[Pushbots getInstance] resetBadgeCount];
        }
    }
我的详细视图名为:“APPDetailViewController”,其中一个web视图名为“webView”

请帮帮我?
提前感谢。

您可以在ClickedButtonIndex方法中创建APPDetailViewController的实例并演示它。如果您有选项卡,您可以切换到该选项卡,然后有一个方法将url传递到该选项卡,以便打开该页面。

web视图不在选项卡中,而是通过嵌入在tabviewController中的navigationViewController以及其他3个视图连接到uitableview,任何解决方案!我很困惑。您有一个带有表视图的视图控制器,您点击一个单元格,这将转到一个带有web视图的新视图控制器?是的,该表视图使用导航视图控制器进行推送,这是我的应用程序的剖析,它使用UITabBarViewController来容纳4个选项卡第一个选项卡>“新闻”UINavigationViewController>UITableView>单击单元格>UIViewController>加载网络视图第二选项卡>静态youtube网络视图第三选项卡>联系我们第四选项卡>关于应用程序