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
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.
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);
}