Reputation: 668
Looking all over for a simple Xcode project that will load my web site in a UIWebView that has the default Safari controllers for back / refresh the page - but can't seem to find one.
All I could find was a great template project, but it didn't have the controllers. And since I am very new to iOS development, I can't figure out how to add the controllers.
Can anyone help me out with complete source for something like that?
Thanks
Upvotes: 0
Views: 168
Reputation: 5227
goBack:
or goForward:
methodsFor the method references, see here: https://developer.apple.com/library/ios/documentation/uikit/reference/UIWebView_Class/Reference/Reference.html#//apple_ref/occ/instm/UIWebView/goBack
The same can of course be done with reload (the method is called refresh
), and this SO even shows an example of how to do it:
Refresh a UIWebView
Upvotes: 1