220 likes | 303 Views
Einführung in die iPhone bzw. App Programmierung. Universität zu Köln Historisch-kulturwissenschaftliche Informationsverarbeitung AM2: Humanities Computing vs. Humanities Computer Science II Hauptseminar: Medien zwischen Technologien und Gesellschaft Dozent: Herr Prof. Dr. Manfred Thaller.
E N D
Einführung in die iPhone bzw. App Programmierung Universität zu KölnHistorisch-kulturwissenschaftliche InformationsverarbeitungAM2: Humanities Computing vs. Humanities Computer Science IIHauptseminar: Medien zwischen Technologien und GesellschaftDozent: Herr Prof. Dr. Manfred Thaller
Betriebssystem • angepasstes Mac OS X • iOS – iPhone OS
iPhone SDK • = Software Development Kid • Xcode • Instruments • Dashcode • Simulator • Interface Builder • Cocoa Touch
Programmieren einer einfachen App (http://cdn1.raywenderlich.com/wp-content/uploads/2012/09/Screen-Shot-2012-09-18-at-5.45.40-PM.png)
Projekt: Hello World (http://kurzvoracht.files.wordpress.com/2008/12/bild-21.png%3Fw%3D300%26h%3D233)
HelloWorldViewController.xib (http://kurzvoracht.files.wordpress.com/2008/12/bild-4.png?w=203&h=300)
Interface HelloWorldViewController.h (http://kurzvoracht.files.wordpress.com/2008/12/bild-5.png?w=300&h=114)
Implementation File: HelloWorld.ViewController.m (http://kurzvoracht.files.wordpress.com/2008/12/bild-7.png?w=700)
(http://www.iosdevgermany.de/wp-content/uploads/2011/11/Tutorial6-DasStoryboard-300x131.png)(http://www.iosdevgermany.de/wp-content/uploads/2011/11/Tutorial6-DasStoryboard-300x131.png)
(http://www.iosdevgermany.de/wp-content/uploads/2011/11/Tutorial6-NeuesProjektOptionen.png)(http://www.iosdevgermany.de/wp-content/uploads/2011/11/Tutorial6-NeuesProjektOptionen.png)
(http://www.iosdevgermany.de/wp-content/uploads/2011/11/Tutorial6-ProjektDatei.png)(http://www.iosdevgermany.de/wp-content/uploads/2011/11/Tutorial6-ProjektDatei.png)
(http://www.iosdevgermany.de/wp-content/uploads/2011/11/Tutorial6-StoryboardEditor.png)(http://www.iosdevgermany.de/wp-content/uploads/2011/11/Tutorial6-StoryboardEditor.png)
(http://www.iosdevgermany.de/wp-content/uploads/2011/11/Tutorial6-ErsterViewController1.png)(http://www.iosdevgermany.de/wp-content/uploads/2011/11/Tutorial6-ErsterViewController1.png)
(http://www.iosdevgermany.de/wp-content/uploads/2011/11/Tutorial6-NavigationController3.png)(http://www.iosdevgermany.de/wp-content/uploads/2011/11/Tutorial6-NavigationController3.png)
(http://cdn3.raywenderlich.com/wp-content/uploads/2011/11/ImageViewsInStoryboard.png)(http://cdn3.raywenderlich.com/wp-content/uploads/2011/11/ImageViewsInStoryboard.png)
ViewController.h -(IBAction)handlePan:(UIPanGestureRecognizer *)recognizer; ViewController.m -(IBAction)handlePan:(UIPanGestureRecognizer *)recognizer { CGPoint translation =[recognizer translationInView:self.view]; recognizer.view.center = CGPointMake(recognizer.view.center.x + translation.x, recognizer.view.center.y + translation.y); [recognizer setTranslation:CGPointMake(0, 0) inView:self.view]; }
(http://cdn1.raywenderlich.com/wp-content/uploads/2011/11/MonkeyMove.png)(http://cdn1.raywenderlich.com/wp-content/uploads/2011/11/MonkeyMove.png)
Quellen • Sadun, Erica: Das iPhone Entwicklerbuch. München 2009. • http://www.raywenderlich.com/tutorials# • http://kurzvoracht.wordpress.com/2008/12/28/hello-world-einfaches-iphone-tutorial/ • http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1;# • http://www.iosdevgermany.de/tutorial/iphone-sdk-tutorial-deutsch-6-storyboard-part-1-grundlagen/ • http://www.raywenderlich.com/6567/uigesturerecognizer-tutorial-in-ios-5-pinches-pans-and-more