ios - dropbox linkFromController detect cancel -
i upgraded dropbox framework in app , have use linkfromcontroller.
there way detect if user tap on cancel button or if dropbox auth popup visible or not?
thanks, max
you can use following delegate filter loading url. find url load in cancel button , use complete task.
- (bool)webview:(uiwebview*)webview shouldstartloadwithrequest:(nsurlrequest*)request navigationtype:(uiwebviewnavigationtype)navigationtype { nsstring *url = [[request url] absolutestring]; if([url isequaltostring:@"cancel url"]){ //do want return no; } }
Comments
Post a Comment