- Full Description
Developing C# Applications for iPhone and iPad using MonoTouch shows you how to use your existing C# skills to write apps for the iPhone and iPad. Fortunately, there's MonoTouch, Novell's .NET library that allows C# developers to write C# code that executes in iOS. Furthermore, MonoTouch allows you to address all the unique functions of the iPhone, iPod Touch, and iPad. And the big plus: You needn't learn any Objective-C to master MonoTouch!
Former Microsoft engineer and published app-store developer Bryan Costanich shows you how to use the tools you already know to create native apps in iOS using C# and the .NET Base Class Libraries. The magic is in Novell's implementation of Apple's Cocoa libraries in MonoTouch. You'll master the same elegant and rich Cocoa environment, but without the need to learn a new programming language.
Developing C# Applications for iPhone and iPad using MonoTouch takes you from your first "Hello, World" example through the major APIs and features of iOS. The coverage is comprehensive and makes use of frequent examples, complete with sample code you can download and reuse to create your own powerful and playful apps.
What youll learn
- How to use your existing C# skills to develop applications on the iPhone and iPad
- Apple's Model View Controller (MVC) methodology
- Working with CocoaTouchs UIKit to create iOS applications using native controls
- Device-specific features, like the camera, GPS, and Compass using CoreLocation, the accelerometer, and others
- Accessing shared resources such as the photos, contacts, and more
- How to persist and retrieve data using SQLite and .NET libraries
- Complex drawing and animation using CoreGraphics and CoreAnimation
- The use of Apple's Push Notification Service
- The latest game porting techniques using XNA Touch
- How to integrate off-the-shelf Objective-C libraries
Who this book is for
Every .NET and C# developer who has have ever wanted to create an application or game for Apple's App Store.
Please note: to make use of the exercises in this book, readers must have a Mac computer running OS 10.6 or higher.
- Table of Contents
Table of Contents
- Getting Started with MonoTouch
- Our First Application
- The Model, View, Controller Approach to Multiple Screen Applications
- iPad and Universal (iPhone/iPad) Applications
- More on Views and Controllers
- Introduction to Controls
- Standard Controls
- Content Controls
- Working with Tables
- Working with Keyboards
- Working with Touch
- Working with Shared Resources
- User and Application Settings
- Working with CoreLocation
- Drawing with CoreGraphics
- Core Animation
- Working with Data
- Publishing to the App Store
- Third Party Libraries
- Using Objective-C Libraries and Code
- Source Code/Downloads
If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.On page 35:
The method code between Figures 2-28 and 2-29 is improperly declared as "partial void ActionButtonClick..." It should be "partial void actnButtonClick..." - replace "Action" with "actn" to match steps up to this point.
On page 70:
The sample source on page 70 for creating an universal app contains code for adding an iphone or ipad screen (?) using this._window.AddSubView(...) but it is not explained in the book where those 2 screens come from or how to create them... apparantly you should have created something called _iPhoneHome and _iPadHome? But how and where? Are those XIB's? Or is there some declaration missing?
Also this sample code can not be found in the source code download.