您的位置:首页 > 产品设计 > UI/UE

iOS 中UI部分一些类的继承关系

2014-02-22 20:48 411 查看
数据类型一般是 NS    界面相关的一般是 UI

NS前缀类、函数归属于属于cocoa Fundation基础类库,其"NS”的由来据说是这样的:乔布斯被苹果开除后,创立了NeSt公司,而cocoa Fundation基础类库就是出自于NeST公司,NeST中的"NS"被作为Fundation中所有成员的前缀。

摘抄的一段话,先放在这儿。


把自己觉得爱混淆的类列一下:

UIBarItem

UIGestureRecognizer

UIPrintFormatter

UIResponder
以上四个类都直接继承于NSObject类,且都有子类。

UIBarItem:
UIBarButtonItem\
UITabBarItem(注意UITabBar于UITabBarItem的区别,UITabBar是继承于UIView类)
UIGestureRecognizer(上一篇有写到)
//省略

UIPrintFormatter

UISimpleTextPrintFormatter

UIMarkupTextPrintFormatter
UIViewPrintFormatter

UIResponder(自己觉得很重要也是很强大的一个类)

UIApplication

UIView

UIViewController

用的最多的应该属UIView和UIViewController

/*UIViewController*/

UIViewController{

它的子类:UITableBarController\

UITableViewController\

UINavigationController{UIImagePickerController\UIVideoEditorController}\

UISplitViewController\

}

/*UIView*/
UIView{
UIControl{UIButton\UIDatePicker\UIPageControl\UISegmentedControl\UITextField\UISlider\UISwitch}
UIWindow
UILabel
UIPickerView

UIProgressView

UIImageView

UITabBar

UIToolBar

UINavigationBar

UITableViewCell

UIActionSheet

UIAlertView

UIScrollView{UITableView\UITextView}

UISearchBar

UIWebView

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: