热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

iOS 面试题与答案

相关差异对比

Android vs iOS

问题 26. What is Swift?

Swift is a modern programming language created by Apple for iOS, OS X, watchOS, and tvOS apps that combines the best of C and Objective-C, but without the C compatibility issues. Swift follows secure programming patterns while also incorporating modern features to make programming simpler, more versatile, and enjoyable. Swift is welcoming to novice programmers and feels familiar with Objective-C developers.

这有帮助吗? 添加评论 查看评论
 

问题 27. What is Objective-C?

Objective-C is the primary programming language for writing applications for OS X and iOS. It’s an object-oriented programming language with a dynamic runtime that’s a superset of the C programming language. Objective-C takes C’s syntax, primitive types, and flow control statements and adds class and process definition syntax.

这有帮助吗? 添加评论 查看评论
 

问题 28. What is an NSError in Swift?

The NSError class is a Cocoa class. The knowledge about an error condition is encapsulated in an extendable, object-oriented manner by an NSError object. It includes a predefined error domain, a domain-specific error code, and a user details dictionary with application-specific data.

这有帮助吗? 添加评论 查看评论
 

问题 29. What is the difference between KVC and KVO?

  • KVC (Key-Value Coding) is a method for accessing an object’s properties using strings at runtime rather than needing to know the property names statically at development time.
  • KVO (Key-Value Observing) allows a controller or class to monitor changes in a property value. In KVO, an object may request to be informed of any adjustments to a particular property, and the observer is automatically notified if that property’s value changes.

这有帮助吗? 添加评论 查看评论
 

问题 30. What is the difference between retain and assign?

Retain creates a reference from one object to another and increases the retain count of the source object.

Assign creates a reference from one object to another without increasing the source’s retain count.

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。