This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
create_a_uiwebview_iphone_app_in_xcode [2010/09/29 02:28] Joel Dare created |
create_a_uiwebview_iphone_app_in_xcode [2020/06/01 22:53] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Create a UIWebView iPhone App in XCode ====== | ||
+ | |||
+ | Note: These instructions are incomplete... | ||
+ | |||
+ | This is a set of instructions on how to create a simple iPhone app using a UIWebView control in XCode. | ||
+ | |||
+ | **Step 1 - Create A New Project** | ||
+ | |||
+ | * Open XCode and create a new project | ||
+ | * Select //Window-based Application// | ||
+ | * Give your application a name | ||
+ | |||
+ | **Step 2 - Create a New Class** | ||
+ | |||
+ | * Right click on //Classes// | ||
+ | * Select //Add//, //New File// | ||
+ | * Select //Cocoa Touch Class// under //iOS// | ||
+ | * Highlight //Objective-c Class// and click //Next// | ||
+ | * Name it //main.m// and click //Finish// | ||
+ | |||
+ | **Step 3 - ...** | ||
+ | |||
+ | * Select the //main.h// file in the left pain | ||
+ | * Add the following code do the //main : NSObject// | ||
+ | |||
+ | IBOutlet UIWebView *mainView; | ||
+ | | ||
+ | * Open //mainWindow.xib// | ||
+ | * | ||