Cocoa versus Cocoa Touch - What is the difference?

前端 未结 6 816
逝去的感伤
逝去的感伤 2020-12-23 19:42

I am learning iOS development in Objective-C, and I have found a lot of code examples.

Some of them, though, say that they are only for Mac OS X (not iOS).

C

6条回答
  •  独厮守ぢ
    2020-12-23 20:15

    The Migrating from Cocoa Touch section of the iPhone OS Technology Overview provides a good overview of the differences with links to more specific documents for each layer.

    The big difference is the UI layer. On the Mac, you have the AppKit framework, on the iPhone, you have UIKit. The smaller differences are in the Foundation framework (linked in the document above).

提交回复
热议问题