Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between AppKit and UIKit?

UIKit and AppKit still share a lot of concepts. Like in "AppKit contains all the objects you need to implement the user interface for a macOS app—windows, panels, buttons, menus, scrollers, and text fields" (by Apple documentation). And same UIKit is support the user interface. So what's the main difference between these two framework.

like image 539
Priti Kanauziya Avatar asked Dec 05 '22 11:12

Priti Kanauziya


1 Answers

AppKit AppKit is included in the OS X SDK only. It provides all the classes and controls you need for creating Mac applications. Most of these classes share a common naming prefix starts with NS and classes you will be working with include - NSView, NSButton.

UIKit

UiKit is the framework that iOS uses to provide its UI and its classes start with a UI prefix. For example, both frameworks have a class to represent color include UIColor, while other concepts are pretty unique to UIKit, such as its use of predefined controllers such as UINavigationController and UITabBarController

like image 148
Merry Avatar answered Dec 07 '22 23:12

Merry