Web Page Display Application In iPhone

This is the Web Page Display application. We are showing you how to display web page on iphone. Its very easy to use in application.

Step 1: Create a new project in Xcode using View-base application.

Step 2: Now add some code in your viewcontroller header file:

 

 

 

Step 3: Double click your .xib file and open it to Interface Builder. Open view, drag Web View from the library and place into view. Next connect File’s Owner icon to View icon. Drag File’s Owner icon to View window and select webDisplay. ┬áNow save your nib file and go back to Xcode.

Step 4: In viewDidLoad we create a URL object, URL request object and load the request in the UIWebView.

 

 

 

Step 5: Now compile your application and run onto the Simulator. (See figure 1)

Figure 1: Google Home page Display.

You can downloaded SourceCode from here Web 2

Leave a Comment:

3 comments
Edgard Rodriguez says March 17, 2010

ok all works but my site is still bigger than 480 320. how do I change the size? Should I need to play with the size in my html? and what about the size images

thanks

Reply
Edgard Rodriguez says March 17, 2010

ok all works but my site is still bigger than 480 320. how do I change the size? Should I need to play with the size in my html? and what about the size images
many thanks again

Reply
Jesse says July 8, 2010

Is there a way to point urlAddress to web pages bundled in the app itself instead of an internet address?

Reply
Add Your Reply