AppKit和UIKit有什么区别? [英] What is the difference between AppKit and UIKit?

查看:70
本文介绍了AppKit和UIKit有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

UIKit和AppKit仍然共享许多概念.就像"AppKit包含为macOS应用程序实现用户界面所需的所有对象-窗口,面板,按钮,菜单,滚动条和文本字段"(由Apple文档提供).并且相同的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.

推荐答案

AppKit AppKit仅包含在OS X SDK中.它提供了创建Mac应用程序所需的所有类和控件.这些类中的大多数共享以NS开头的通用命名前缀,您将使用的类包括-NSView,NSButton.

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是iOS用于提供其UI的框架,其类以UI前缀开头.例如,这两个框架都有一个代表颜色的类,包括UIColor,而其他概念对于UIKit来说是非常独特的,例如它对预定义控制器的使用,例如UINavigationController和UITabBarController

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

这篇关于AppKit和UIKit有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆