Cocoa is Apple's API to develop apps for macOS, formerly known as OS X.
Cocoa is a container framework and contains three sub-frameworks.
- Foundation
- AppKit
- CoreData
Cocoa Touch is Apple's version of Cocoa to develop apps for iOS, watchOS, and tvOS. Cocoa Touch contains the same sub-frameworks, except instead of AppKit, it contains UIKit.
- Cocoa, which includes the Foundation and AppKit frameworks, is used for developing applications that run on OS X.
- Cocoa Touch, which includes Foundation and UIKit frameworks, is used for developing applications that run on iOS.
For Apps without any UI, it is recommended to simply only include Foundation instead of Cocoa.
Cocoa and Cocoa Touch comes with Xcode installation.
Hopefully, these resources will help you better understand iOS application architecture and how they work together.
About Ferdous Mahmud Akash
Hey there! I'm a self-taught iOS developer from Bangladesh.
I'm also passionate about sharing my knowledge and experience with other aspiring developers through my blog at ferdousmahmud.co
Thank you for visiting my website, and feel free to reach out if you have any questions or just want to say hello!