Cocoa versus Cocoa Touch - What is the difference?

前端 未结 6 810
逝去的感伤
逝去的感伤 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:14

    In term of import in Swift

    import Cocoa in Mac OSX application is the same as

    import AppKit
    import CoreData
    import Foundation
    

    whereas we can't import CocoaTouch in iOS

提交回复
热议问题