iPad

From $1
Table of contents

MonoTouch v1.9 has been released with iPad support.

The APIs exposed by MonoTouch for iPad reflect the APIs published by Apple on January 27th.  The MonoTouch team at Novell will track the changes that Apple does to the APIs, since Apple APIs are subject to change, so are the new iPad-specific MonoTouch APIs.

The initial January 28th release contains MonoDevelop support for iPad projects: creating iPad projects, launching projects in the iPad simulator and intellisense for all the new APIs.

Requirements

  1. iPhone SDK 3.2
  2. MonoDevelop Preview
  3. MonoTouch 1.9 Alpha

Installation

You must install the iPhone SDK 3.2 before following any of the following installation steps.   Due to Apple's confidential information, MonoTouch for the iPad will not install unless you have installed the iPhone SDK 3.2.

If you are new to MonoTouch, follow the standard installation instructions for MonoTouch.   Then continue here.

If you already have MonoTouch and MonoDevelop, start MonoDevelop, and go to the Help->Check For Updates menu option.  Upgrade to MonoDevelop 2.2.1

After installing the new MonoDevelop 2.2.1 release you will need to go into the updater (available from MonoDevelop's Help Menu) and select the Alpha channel from the drop down.  If you have the iPhone SDK v3.2 properly installed you will be presented an alpha version of MonoTouch v1.9 with iPad support.   Download and install.

After successfully installing all the requirements you will have a new iPad project type availible in the iPhone options.

Working with MonoTouch/iPad

IPad Project Templates

A new project template has been created for iPad applications, unlike the standard iPhone template, this will create a full screen template.

At this point, Apple's SDK does not expose "Universal" functionality yet, you have to pick either an iPhone project or an iPad project.   When the SDK adds the Universal support, we will add this to MonoDevelop as well.

Interface Builder and MonoDevelop.

When you add new Interface Builder elements to iPad projects, with the exception of the MainWindow added in the project template, they still default to their iPhone counterparts.  To change this, double clicking the XIB file in the Solution Pad after adding it and performing the following actions:

  1. Click File->Transition To->iPad
  2. Close the old iPhone style XIB
  3. File->Save As and overwrite the old XIB with the transitioned one
Downgrading

If you want to downgrade MonoTouch to the old APIs, you should re-install the monotouch.pkg package that you got originally.

Testing in iPad iPhone Mode

If you would like to test your existing projects in the iPad iPhone mode.  Simply change the Target SDK version to 3.2 in the appropriate project configuration.

Determining Running Device

You can check the UIScreen.MainScreen.Bounds.  The new iPad runs at 1024x768 whereas the iPhone runs at 480x320

 


Retrieved from "http://monotouch.net/IPad"

Tag page

Files (0)

 
Page last modified 16:59, 29 Jan 2010 by Kangaroo