Shreyash Mahajan
Shreyash Mahajan

Reputation: 23596

UIWebView On Button Click Event

I have done this Example for implementation of the WebView. here is the link

But in My application i want to set it to load on the Button click event. If the Above link Example there is no any xib file needed. But in My Application i have made the XIB file to load. So How can i implement it on My own XIB file on button pressed Event ???

Upvotes: 1

Views: 781

Answers (1)

LJ Wilson
LJ Wilson

Reputation: 14427

Open your xib file and use the assistant editor to create an IBAction for your UIButton. Then in the method that is created for you in your .m file instantiate and present the WebView.

Upvotes: 1

Related Questions