Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

iOS for Android Developers (with Swift)

11,179 views

Published on

As an app developer there is always pressure to understand and be able to address both major platforms. At first blush, coding for iOS seems quite different than for Android, perhaps due to the language differences between Objective-C and Java, and of course there is a different IDE and framework. With the introduction of Swift, this chasm seems much smaller. This talk will map Android and Java functionality to similar concepts in iOS using Swift. We’ll see the similarities and differences, focusing on framework concepts, and migrate a simple Android app to iOS.

Published in: Software, Mobile
  • Have you ever used the help of ⇒ www.HelpWriting.net ⇐? They can help you with any type of writing - from personal statement to research paper. Due to this service you'll save your time and get an essay without plagiarism.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • If there's a nicer guy in the tipping industry I'm yet to meet them. Glad you let me buy you a pint the other week too. Absolutely the least I could have done. Looking forward to turning this up a notch once I hit £20k banked. ■■■ https://bit.ly/30jWepO
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • See how I make over $7,293 a month from home doing REAL online jobs! ➤➤ http://t.cn/AisJWzdm
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

iOS for Android Developers (with Swift)

  1. 1. iOS for Android Developers with Swift David Truxall, Ph.D. http://bit.ly/androidToIos
  2. 2. About Me @davetrux blog.davidtruxall.com
  3. 3. You ● Know Java ● Know Android ● Don’t know Swift ● Don’t know iOS ● Need a Mac
  4. 4. Goal Learn basic iOS concepts for someone familiar with Android (using Swift)
  5. 5. Why? ● Do I hate Android now? ● Neither platform is “the winner” ● Clients want both platforms ● You can make more money ● Swift is the new hotness in mobile ● Objective-C
  6. 6. Agenda 1. Brief language intro 2. Project/Tool Structure 3. App Architecture 4. Coding Demo
  7. 7. Swift ● Object-oriented AND Functional ● C family ● Cleaner, simpler, safer than Objective-C ● Modern features
  8. 8. Compare - (NSString*) concatenateString:(NSString*)stringA withString:(NSString*)stringB { NSString *finalString = [NSString stringWithFormat:@"%@%@", stringA, stringB]; return finalString; } func concatenateString(stringA: String, stringB: String) ->String { let result = stringA + stringB return result }
  9. 9. Swift Features ● Closures ● Tuples and multiple return values ● Generics ● Structs that support methods ● Functional programming patterns
  10. 10. Java/Android Swift/iOS import com.package.name; import frameworkname int counter; var counter :Int static final int LEVELS = 8; let levels = 8 private private public public - internal (*) protected - Language
  11. 11. Java/Android Swift/iOS class Foo extends Bar {} class Foo : Bar interface Baz{} protocol Baz class Foo implements Baz{} class Bar : Baz {} Foo(); init() void doWork(String arg){} func doWork(arg: String) -> Void Foo item = new Foo(); var item : Foo = Foo() item.doWork(arg); item.doWork(arg) Objects
  12. 12. Optionals ? - Has a value or no value at all (nil) ! - Implicitly Unwrapped Optional
  13. 13. Swift OO class VideoMode { var resolution : Resolution = Resolution() var interlaced = false let frameRate = 60.0 var name: String? func setUpMode(modeName: String) -> Void {<do stuff>} }
  14. 14. Swift Functional func addTwoInts(a: Int, b: Int) -> Int { return a + b } var addFunction: (Int, Int) -> Int = addTwoInts func printMath(mathFunction: (Int, Int) -> Int, a: Int, b: Int) { println("Result: (mathFunction(a, b))") } printMath(addTwoInts, 3, 5)
  15. 15. Xcode ● Free ● It’s an IDE ● Click not double-click ● Virtual file organization
  16. 16. Demo
  17. 17. Application Architecture Model - View - Controller UI Organization and Plumbing
  18. 18. Model - View -Controller Controller ModelView Update User Action Update Notify
  19. 19. Android != Model-View-Controller Activity Provider Layout Update Notify
  20. 20. iOS Model - View -Controller ViewController Custom ClassesUIView Update via IBOutlet Respond to IBAction Update Notify
  21. 21. UI Organization Android iOS Layout XML XIB (NIB) - Storyboard - IBOutlet - IBAction Intent ~ Segue
  22. 22. Lifecycle Events Android iOS onCreate (onCreateView) viewDidLoad onStart viewWillAppear onResume viewDidAppear onPause viewWillDisappear onStop viewDidDisappear
  23. 23. UI Elements Android iOS TextView UILabel EditText (single line) UITextField EditText (multi-line) UITextView Button UIButton RadioGroup SegmentedControl CheckBox, ToggleButton UISwitch
  24. 24. Delegation ● Class has a property that is a protocol ● Second class implements the protocol ● Second class assigned to the variable in the first class
  25. 25. Converting an App
  26. 26. Yet Another Shameless Plug @davetrux blog.davidtruxall.com http://bit.ly/androidToIos
  27. 27. Resources Apple's Swift iBook Swift Developer Center Migrating to Swift from Android Book Empty Application template http://bit.ly/androidToIos

×