objective c - xcode iphone found cause of problem but don't know fix - ad the launching app store -
objective c - xcode iphone found cause of problem but don't know fix - ad the launching app store -
i have code in place:
- (bool)webview:(uiwebview *)webview shouldstartloadwithrequest:(nsurlrequest *)request navigationtype:(uiwebviewnavigationtype)navigationtype { if ( [request.maindocumenturl.relativepath isequaltostring:@"/upload"] ) { viewcontroller.view.hidden = no; [viewcontroller pushpick:nil]; homecoming no; } homecoming yes; }
it supposed intercept webview request when location called equal "/upload", works, when other requests made such url launch app store not work. when remove code admob advertisement launches app store fine, code not. "return yes" not continuing request app store launch. how can prepare this?
a uiwebview
never opens app store on own. you're overriding different implementation of delegate method handles opening app store, instead of returning yes, should phone call superclass.
iphone objective-c cocoa-touch mobile
Comments
Post a Comment