I have one webview that fits fullscreen and loads an html file. Then another html file is loaded and I would like to apply transition between those files. Possible? Switch between two views that contains another webview is not an option due to any other reasons. Thank you.
Share
You may insert a
UIWebViewinside aUIScrollView. Then when you have to load the new page, you create anotherUIWebViewand itsxwill be thewidthof the currentUIWebView, thenaddSubviewthe newUIWebViewto the scrollview, and update the scrollviewcontentSize. Then call the method scrollRectToVisible:animated of scrollview to the frame of the new web view, this do the transition.In addition, if you don’t want to back to the previous page, you may destroy the previous UIWebview and reset the
contentSizeof the scrollview as it was initially.