Changes

Jump to: navigation, search

Integrating iAds into an iOS 4 iPad App (Xcode 4)

23 bytes added, 19:55, 18 April 2011
Configuring the View Controller
In the above code we have also added a line that reads <ADBannerViewDelegate>. This indicates to the compiler that within the view controller we will be implementing the delegate methods for the banner view protocol.
== Designing the User Interface===
The next step is to design the user interface and connect the table view object to the tableView outlet declared in the view controller interface file above. Select the ''iAdAppViewController.xib'' file, display the Object library (''View -> Utilities -> Object Library'') and drag and drop a UITableView object into the View window as illustrated in the following figure:
[[Image:ipad_iads_layout.jpg|The user interface for an example iAds iPad app]]
Establish a connection between the table view object and the tableView outlet in the view controller by holding down the Ctrl key, clicking on the File’s Owner object and dragging the resulting blue line to the table view in the design panel. Release the line and select the tableView outlet from the resulting menu.
== Creating the Banner Ad ==

Navigation menu