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

来源:互联网 发布:ubuntu install pip 编辑:程序博客网 时间:2024/06/07 03:52

数据类型一般是 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


}


0 0