关于此课程

This course is designed to teach students how to understand and identify the differences between the Objective-C and Swift programming languages, and especially, how to rewrite from the former to the latter. Understanding communications between the two languages—called "interoperability"—is becoming more and more important for developers, particularly as we prepare for the arrival of Swift 3.0. In the course, students will write classes and add functionality to classes by writing and calling methods. After learning some basic Objective-C syntax, students will examine and break down an app written in Objective-C and rewrite it in Swift. The course will conclude with a review of and practice with the most common challenges for interoperability between Objective-C and Swift.

喜欢这门课程?加入“iOS 开发者”纳米学位,点此免费体验

学费
免费
学习时间
大约 5 WEEKS
难度
中级
你将获得

Rich Learning Content

Interactive Quizzes

Taught by Industry Pros

Self-Paced Learning

Student Support Community

开始你的旅程

学习这门免费课程,迈出通往iOS 开发者(英文)职业道路的第一步。

免费课程

Objective-C for Swift Developers

合作企业 Lyft

通过创新性的自主学习方式,掌握新技能,提升竞争力。

Icon steps 54aa753742d05d598baf005f2bb1b5bb6339a7d544b84089a1eee6acd5a8543d
 
 

课程讲师

Gabrielle Miller-Messner
Gabrielle Miller-Messner

讲师

你将学到什么

lesson 1

Objective-C and Swift, Compare and Contrast

  • Learn the distinguishing language features of Objective-C.
  • Compare and contrast Objective-C and Swift language features.
  • Practice answering interview questions about language features.
lesson 2

Writing Classes

  • Familiarize yourself with Objective-C syntax.
  • Write some classes and properties from scratch.
  • Build a simple Objective-C program with classes.
lesson 3

Adding Functionality to a Class: Methods and Messages

  • Master how to write and call methods in Objective-C.
  • Learn basic control flow syntax.
  • Build a functioning rock, paper, scissors game.
lesson 4

Migrate an App from Objective-C to Swift: Part I

  • Learn how to write custom classes.
  • Incorporate third party frameworks and extensions.
  • Begin porting an existing Objective-C project into Swift.
lesson 5

Migrate an App from Objective-C to Swift: Part II

  • Persist data with NSCoder and NSKeyedArchiver.
  • Implement navigation with a collection view.
  • Finish porting an existing Objective-C project into Swift.
lesson 6

Common Interoperability Challenges

  • Facilitate communication between the languages of iOS.
  • Add functionality to a mixed language project.
  • Complete a set of coding challenges to sharpen interop skills.

先修知识及要求

Experience writing iOS apps in Swift.

查看使用优达学城的技术要求

为什么学习这门课程?

This course will teach you the distinguishing language features of Objective-C, including basic syntax. With this knowledge you will be able to confidently answer some of the most commonly asked interview questions related to Objective-C. You will migrate an app from Objective-C to Swift and in so doing become familiar with the experience of deciphering an unfamiliar Objective-C codebase, an experience you are likely to encounter in your first job as an iOS developer. You will also get an opportunity to practice with interoperability between Objective-C and Swift, practice negotiating the differences between the languages of iOS.

When you look out at the iOS landscape you likely see that the number of engineers developing in Swift is growing rapidly, yet many apps and third party APIs are still written in Objective-C. This course is designed to help prepare you for that landscape.

我将获得什么?
Instructor videos Learn by doing exercises Taught by industry professionals