I am creating a UIWebView to load a specific facebook page:
NSString *urlAddress = [NSString stringWithFormat:@"http://www.facebook.com/%@",self.userID];
I need to know how to intercept the UIWebView navigation so that it only loads the URL of this particular user page. For example, this will allow navigation on the Wall page, Info and Photos page of this user ID.
I tried to use the delegate method shouldStartLoadWithRequest: It works well when a user clicks on external links such as Youtube or something else, but this method is never called if, say, the user clicks the homebook home button, which redirects to the main page of a registered user who is not the corresponding user of the identifier user passed in the url.
Any help? Thank you very much!
source share