First Steps in iOS Development

17 %
83 %
Information about First Steps in iOS Development
Technology

Published on February 27, 2014

Author: goldshtn

Source: slideshare.net

Description

Presentation at ConFoo 2014 on iOS Development. Discussing the basic components of the iOS ecosystem and building a basic todo list manager app with Xcode and storyboards.

Sasha Goldshtein CTO, SELA Group @goldshtn blog.sashag.net First Steps in iOS Development © Copyright SELA software & Education Labs Ltd. | 14-18 Baruch Hirsch St Bnei Brak, 51202 Israel | www.selagroup.com

The iOS Platform Apps • 877,013+ of them  Cocoa Touch • UI, gestures, view navigation, media Core Services • Location, threading, HTTP Darwin (kernel) • Drivers, security

Platform Philosophy User Developer Apple • Consistent interface metaphors • Always at home, on any device and in any app • Seamless sync, backup, purchase • Strong push to object orientation • Just one language (Objective C) • Strong separation of concerns in UI – MVC • Full control over the ecosystem, hardware and software • Ultimate arbitrator on whether an app is a fit for the App Store

iOS Devices and Versions September 2013: ≈95% of iOS devices run iOS 6 iPhone 3GS • iOS 3 • iOS 4 Original iPad iPhone 5 iPhone 4/4S • iOS 5 • iOS 6 iPhone 5c/5s • iOS 7

Devices and Resolutions iPhone 3/3GS iPhone 4/4S iPhone 5/5c/5s iPad 1/2 iPad Mini iPad 3/4 3.5” 3.5” 4” 9.7” 7.9” 9.7” 320 480 640 960 640 1136 1024 768 1024 768 2048 153 6

Developing for iOS UIKit Xcode Objective C self.title = [NSString initWithFormat:@"%d", n]; [button setTitle:self.title forState:UIControlStateNormal];

Our First iOS App Demo

Project Components Generated files: Application delegate Initial view controller Main storyboard Property list File for localizable strings Application icons Xcode also adds basic frameworks to your app

iOS MVC Fundamentals View • Draws itself on the screen • Contains generic UIrelated data View Controller • Creates and coordinates views • Populates views and reflects changes to the model Model • UI-agnostic classes • Can be a bunch of objects, a database, a file, an Internet service

Outlets and Actions Xcode connects views and controllers Controller manipulates views through outlets Controller receives events through actions @interface MyViewController : UIViewController @property (nonatomic, weak) IBOutlet UITextField *petName; - (IBAction)getQuote; @end

Connecting UI to Code Demo

iOS Navigation Types Tab bar controller Navigation controller

Storyboards The storyboard describes your application’s view controllers and connects them with segues

Passing Parameters Usually the source view controller sets properties or calls methods on the destination view controller - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { MySecondVC *vc = segue.destinationViewController; vc.itemToDisplay = [self selectedItem]; vc.delegate = self; // For callbacks }

Storyboards and Segues Demo

Summary Objective C fundamentals View controllers, views, outlets, actions Storyboards, segues It’s just another {language, IDE, UI framework} The rest is just details: data, networking, settings, table views, styling, …

Questions Sasha Goldshtein CTO, SELA Group @goldshtn blog.sashag.net

Add a comment

Related presentations

Related pages

Intro to iOS App Development with Swift | Udacity

Take the first step in becoming an iOS Developer by learning about Swift and writing your first app.
Read more

Free tech trainings: First Steps In iOS Development - YouTube

Want to watch this again later? Sign in to add this video to a playlist. Лекция "Първи стъпки в iOS", част от Free tech ...
Read more

Start Developing iOS Apps (Swift): Jump Right In

Jump Right In. Start Developing iOS Apps (Swift) is the perfect starting point for creating apps that run on iPhone and iPad. View this set of ...
Read more

First steps in iOS application development - Sasha ...

First steps in iOS application development - Sasha Goldshtein DevWeek Events. ... First Step Zoo Picnic educational app - Duration: 1:14.
Read more

10 steps to become a professional iOS developer. — App ...

10 steps to become a professional iOS developer. ... you need a an iOS developer ... now you are prepared to get your first job as an iOS developer!
Read more

First Steps: Identifying Your App in iTunes Connect

First Steps: Identifying Your App in iTunes Connect. The App Store is a highly competitive, vibrant, and constantly evolving digital marketplace ...
Read more

iOS SDK - Wikipedia, the free encyclopedia

The iOS SDK (Software Development Kit) ... First beta release for iOS version 4.0 ... one must enroll in the iPhone Developer Program—a step requiring ...
Read more

Diving In - iOS App Development for Non-Programmers by ...

... iOS App Development for Non-Programmers by ... award-winning App Developer, highly acclaimed iOS trainer ... about taking the first step in ...
Read more