Class Syllabus and Schedule
Week 1. Hello World, Welcome to xCode
Week 2. User Interface
Week 3. Core Animations
Week 4. Switching Views
Week 5. Tab View & Accelerometer
Week 6. Midterm, UIWebView, Emailer

YouTube Channel

Introduction to Creating Applications for the iPhone
SMC-2731-A SA, Jan 29 - Apr 23 
Hours: 10:00AM - 02:00PM  ROOM: 212
Location: SVA 133/141 West 21 Street 

Apple Developer

Helpfull Sites
iPhone Development 101
TutsPlus iPhone Tutorials

WEEK 2. Feb 5th, 2011

Basic iPhone User Interface

HOMEWORK

1. Video Exercise: UIAlertViews & How to Remove Keyboard
Follow along with the video exercise bellow. Switch to youtube HD version if font size in unreadable.



CODE: Create a UIAlertView
	UIAlertView *alert = [[UIAlertView alloc]
						initWithTitle:@"Alert Title" 
						message:@"Message Text"
						delegate:self 
						cancelButtonTitle:@"Done Button Text" 
						otherButtonTitles:nil];
	
	[alert show];
	[alert release];

CLASS NOTES

Deploying iPhone Apps to Real Devices

Step by Step: Deploying iPhone Apps to Real Devices

Touch and Drag

2.1 Touch and drag an image around the screen using -(void)TouchesMove
Download Source File

Drag the images to your desktop, then add them to the resource folder of your project.

CODE: touchesMoved function called every time user moves finger on screen
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{
	// Place touch event in to myTouch variable 		
	UITouch *myTouch = [touches anyObject];
	
	// Gets center point of myTouch, places in myPoint
	CGPoint myPoint = [myTouch locationInView:self.view];
	
	// Use myPoint as the new center of the ball graphic 
	ball.center = CGPointMake(myPoint.x, myPoint.y);
}