I'm making an iPhone app where all the data is online so its really a web app and the app listed on the app store is the portal to get onto it.
I would like to know how can I make it that every time the app is opened the page is refreshed and it take the user back to the homepage, and auto refresh say after 10mins.
try:
[NSTimer scheduledTimerWithTimeInterval:600 target:self selector:@selector(refreshWebView) userInfo:nil repeats:YES];
-(void)refreshWebView{
//refresh your webView here..
}
note: untested
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.