开发者

Override decidePolicyForNavigationAction what next?

In my first view I've overridden decidePolicyForNavigationAction, now I want to pass 'request' to another view that will be pushed onto the navigationController stack, which will display the content from the url in a uiwebview

My problem, I think, is pushing the next view onto the stack, I keep getting 'request for member 'navigationController' in something not a structure or union.

My code is below, I've lost track of the different solutions I've开发者_Go百科 tried to this, its probably something stupid but I its getting late and I cant think...

    - (void)webView:(WebView *)webView decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id < WebPolicyDecisionListener >)listener
{
    TweetLinkView *tlvController = [[TweetLinkView alloc] initWithNibName:@"TweetLinkView" bundle:[NSBundle mainBundle]];
    tlvController.selectedLink = [NSString stringWithFormat:@"%@", request];
    [self.navigationController pushViewController:tlvController animated:YES];
    [tlvController release];
    tlvController = nil;
}

Thanks for your help, hopefully :)


Is the class defining that method extending UIViewController?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜