Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to iOS development

Introduction to iOS development

An introduction to Swift and iOS development.

Funmi Adewodu

June 25, 2018
Tweet

More Decks by Funmi Adewodu

Other Decks in Programming

Transcript

  1. • A Mac • Create an Apple ID • Install

    Xcode • Optional enrolment in Apple's developer program to publish apps to the App store ($99/year) Getting Started ⚒
  2. • Programming language for macOS, iOS, tvOS and watchOS •

    Includes modern language features for developers • A lot more concise and intuitive than Objective-C • Swift is easier to learn Swift
  3. Swift Features - Type safety A type safe language encourages

    you to be clear about the types of values your code can work with. So if a part of your code requires a String, you can’t pass it an Integer by mistake. https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_La nguage/TheBasics.html#//apple_ref/doc/uid/TP40014097-CH5-ID322
  4. Integer Int Represents whole numbers 4 Double Double Represents numbers

    with decimal points 10.23 String String Represents text “Hello” Boolean Bool Represents true or false values true Symbol Purpose Example Common types in Swift
  5. Swift Features - Protocols A protocol defines a required set

    of methods and properties that other types can adopt.
  6. UIKit UIAlert UISearchBar UITextField UIWebView UIButton UIScrollView UISlider and many

    more... https://developer.apple.com/design/human-interface-guidelines/ios/overview/themes/
  7. Represents a screen in your app and manages other view

    elements within it App Files - View Controller
  8. Building Layouts - Auto Layout Auto Layout is a way

    of setting constraints or UI based rules that define the position of elements on the screen. • Center a view vertically • Center a view horizontally • Position a view relative to other views
  9. • Apple’s documentation (https://developer.apple.com/develop/) • App Development with Swift curriculum

    by Apple (Available on the iBooks store) • Raywenderlich iOS and Swift tutorials (https://www.raywenderlich.com/) • Udacity iOS courses (https://eu.udacity.com/courses/ios) • Stanford iOS course (https://itunes.apple.com/us/course/developing-ios-11-apps-with-swift/id1309275316) • Hacking with Swift (https://www.hackingwithswift.com/read) • Meetups: Codebar iOS, NSLondon, iOS London, Swift London. Resources