iam va changer mes UIWebView
fichiers via UISwipeGuesture
mais ont problème:Charger le fichier html différent sur un UIWebView
j'ai 100 fichiers HTML chargés sur UIWebView, donc je veux mettre en œuvre quelque chose comme ceci: si l'utilisateur fait glisser la voir mon webView va charger le fichier suivant html mais le problème est mon code il suffit de charger premier fichier HTML:
NSString *path = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"file%d",+1] ofType:@"html"];
NSFileHandle *readHandle = [NSFileHandle fileHandleForReadingAtPath:path];
NSString *htmlString = [[NSString alloc] initWithData:
[readHandle readDataToEndOfFile] encoding:NSUTF8StringEncoding];
[self.myWebView loadHTMLString:htmlString baseURL:nil];
Je veux dire lorsque le droit swipe utilisateur à gauche file2.html de charge UIWebView puis file3, puis fichier4 et ..... Merci – Momi
Robot K, fonctionne très bien, mais avec currentIndex = 0; , mes fichiers remonte le web 1, ne continue pas à former le dernier fichier! – Momi