Presentation is loading. Please wait.

Presentation is loading. Please wait.

IStarted- And You Can Too! A Beginner’s Guide to iOS Programming.

Similar presentations


Presentation on theme: "IStarted- And You Can Too! A Beginner’s Guide to iOS Programming."— Presentation transcript:

1 iStarted- And You Can Too! A Beginner’s Guide to iOS Programming

2 Teaser, not a Tutorial

3 Prerequisites

4 Think Different Dress the Same

5 1. The Uniform

6

7 2. The Computer Mac Mini $599

8 3. The Development Environment Register as a Developer FREE Download XCode from Mac App Store FREE Download Esri iOS SDK FREE

9 4. The Toys iPhone 4S $199 iPad 2 $499 Developer license* $99/year

10 5. The Help iOS Programming: The Big Nerd Ranch Guide (2nd Ed.) $30.42 Objective-C Programming $22.63 Whitepapers, Tutorials, Videos FREE

11 $153 - $950 (Not Counting the Clothes)

12 Objective C

13

14 Data types Expressions Program Control Preprocessor Separate header files

15 Classes Single inheritance Dynamic binding Protocols (“Interfaces”) Properties Methods

16 IAGSLayerView* InsertMapLayer( AGSLayer* mapLayer, String* name, unsigned int index); result = myMapView->InsertMapLayer( mapLayer, name, index); Methods in C++

17 - (UIView *) insertMapLayer: (AGSLayer*) mapLayer withName: (NSString*) name atIndex: (NSUInteger) index; result = [myMapView insertMapLayer: mapLayer withName: name atIndex: index]; Methods in Objective C

18 6. Fully- stocked Liquor Cabinet Priceless

19 [object message];

20 [object message: argument];

21 CGColorRef color = [[UIColor darkGrayColor] CGColor]; CGContextSetShadowWithColor(context, offset, 2.0, color);

22

23 spulch.blogspot.com/2007/05/weird-animals-created-using-photoshop.html

24 iOS Development Memory Management Model View Controller Delegates Program Structure

25 Memory Management

26

27

28 iOS Uses Reference Counting alloc creates object with count of 1 retain increments count release decrements count dealloc called when count drops to 0

29 Advantage Fast and responsive

30 Disadvantage It’s hard

31 malloc( ) free( )

32 Model View Controller

33 Quick Demo

34 Model View Controller

35 Models Strings Map data (not display) @”Hello, World”

36 Views “Window”

37

38

39

40

41 Views are Defined in XIB files

42 Controllers

43 EsriMapViewController controls the view that draws this map

44 GoogleMapViewController controls the view that draws this map

45 TabBarViewController swaps out other controllers, whose views fill this space

46 Delegates

47 Delegate = Callback

48 Application Delegate Root object of an iOS application Responds to application events didFinishLaunchingWithOptions applicationWillTerminate etc.

49 AGSMapViewTouchDelegate Map view sends messages to the view controller didClickAtPoint didTapAndHoldAtPoint

50 Structure of the iStarted Application

51

52

53

54

55

56 Why Bother?

57 Learn new and different technologies Business opportunity Fun!

58 One More Thing

59

60 // UX designers // QA engineers // Product owners // Developers if ( [you want: aJob] ) { [me contact]; }

61 [you Thanks]; rich.ruh@gmail.com @richruh [self drink: aMargarita];

62

63


Download ppt "IStarted- And You Can Too! A Beginner’s Guide to iOS Programming."

Similar presentations


Ads by Google