This Wrox Blox is for .NET developers who want to learn to develop
for the iPhone with C# using MonoTouch and MonoDevelop on the Mac.
The iPhone is the smartphone leader in mindshare and the amount of
money spent on applications. This lead in money spent on
applications is expected to grow over the next several years.
Objective-C is the native language for iPhone development. .NET
developers, who work in the largest general area of development
frameworks, have looked at iPhone developers with a great deal of
envy. But with the release of MonoTouch, .NET/C# developers can
apply their knowledge to iPhone development. This Wrox Blox will
provide you with the basics of development on the iPhone with
MonoTouch and MonoDevelop.

Table of Contents

iPhone Requirements 2

Development Strategies 3

Web Development with ASP.NET 3

MonoDevelop and MonoTouch 4

Visual Studio .NET ➪MonoDevelop 4

Classes in MonoTouch 4

What Is MonoTouch? 4

Namespaces and Classes 5

Introduction to Development on the Mac with MonoDevelop
6

Interface Builder 8

Outlets 10

Actions 14

Deploying to an iPhone 15

Mapping 17

MKMapView 17

The Application 18

Annotating the Map 20

Debugging 21

Interacting with Other Applications 22

UIPicker 22

NSUrl 24

UIAlertView 26

UITableView 26

DataSource 27

Binding Data to a UITableView 29

Customizing UITableView 30

Accelerometer 33

Settings 34

Things to Watch Out For 37

Resources Used 38

About Wallace B. McClure 39

Usage Rights for Wiley Wrox Blox

Any Wrox Blox you purchase from this site will come with certain
restrictions that allow Wiley to protect the copyrights of its
products. After you purchase and download this title,
you:

Are entitled to three downloads

Are entitled to make a backup copy of the file for your own
use

Are entitled to print the Wrox Blox for your own use

Are entitled to make annotations and comments in the Wrox Blox
file for your own use

May not lend, sell or give the Wrox Blox to another user

May not place the Wrox Blox file on a network or any file
sharing service for use by anyone other than yourself or allow
anyone other than yourself to access it

May not copy the Wrox Blox file other than as allowed
above

May not copy, redistribute, or modify any portion of the Wrox
Blox contents in any way without prior permission from Wiley

If you have any questions about these restrictions, you may
contact Customer Care at (877) 762-2974 (8 a.m. - 5 p.m. EST,
Monday - Friday). If you have any issues related to Technical
Support, please contact us at 800-762-2974 (United States only) or
317-572-3994 (International) 8 a.m. - 8 p.m. EST, Monday -
Friday).