ios - WKWebView autocomplete suggestions in UITextField -


i using wkwebview display web page , have uitextfield user can enter url wish navigate (in-app browser of sorts). user typing, display list of possibilities (i.e. popular sites). there apple (or 3rd party) apis use fetch list of popular sites based on substring?

edit: need use wkwebview opposed new safari view controller because want able inject custom javascript (which not allowed in former)

use url auto complete

http://suggestqueries.google.com/complete/search?client=chrome&q=yourquery

like

search?client=chrome&q=apple

use tableview showing suggestions.

- (ibaction)act_search:(id)sender {     if([_txt_search.text length] > 2)     {          code here ...          [_tableview reloaddata];       }     else     {         jsonarr = nil;         [_tableview reloaddata];     }   } 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -