快速浏览ios框架系列(一)----UIKit Framework

来源:互联网 发布:软件安全漏洞检测技术 编辑:程序博客网 时间:2024/05/17 05:01
除了外行,几乎人人都知道UIKit Framework的重要性。
在6.0时代UIKit Framework的头文件增加到了100多个,新人点开往往会吓一跳,不明觉厉,萌生退意。固,本文试图通过阐明每个头文件的大体作用,使读者对UIKit Framework有个概念性的认识,具体的代码实现以及API的使用技巧不在本文阐述范围之内。


UIAccelerometer.h

加速器

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIAccessibility.h

UIAccessibilityAdditions.h

UIAccessibilityConstants.h

UIAccessibilityElement.h

UIAccessibilityIdentification.h

UIAccessibilityZoom.h

使外部设备了解程序内部的执行,包括api,协议,分类,宏定义等一大堆东西。据说是给残疾人用的,好像。。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIActionSheet.h

类似与windows的对话框。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIActivityIndicatorView.h

旋转进度轮,俗称菊花。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIActivity.h

UIActivityItemProvider.h

UIActivityViewController.h

分享之类的。。。。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIAler.h

内容为:

#import <UIKit/UIActionSheet.h>
#import <UIKit/UIAlertView.h>

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIAlertView.h

提示框,类似于windows的哐当。。。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIAppearance.h

包括两个协议,用来自定义视图外观。例如button,有属性

@property(nonatomic,retain)   UIColor     *tintColor NS_AVAILABLE_IOS(5_0) UI_APPEARANCE_SELECTOR;

利用
[[UIButton appearance] setTintColor:[UIColor redColor]];(全局更改)

即可改变UIButtonTypeRoundedRect类按钮按下颜色。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIApplication.h

核心。

重要类,需另行讲解。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIBarButtonItem.h

小按钮,导航上面的返回键。继承自UIBarItem

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIBarItem.h

抽象类。 在屏幕顶部或底部的栏目。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIBezierPath.h

创建矢量路径,Core Grapice框架关于path的一个封装。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIButtonem.h

按钮控件

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UICollectionView.h

UICollectionViewCell.h

UICollectionViewController.h

UICollectionViewFlowLayout.h

UICollectionViewLayout.h

CollectionView,6.0新增控件,工作原理和UITextView神似,有相同的父类,只不过TextView存放表格,CollectionView存放视图。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIColor.h

颜色

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIControl.h

继承自UIView,提供了一套触摸事件封装。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIDataDetectors.h

定义了一个枚举,UIDataDetectorTypes。作为某些类的属性。

例如:

UITextView

@property(nonatomic) UIDataDetectorTypes dataDetectorTypes NS_AVAILABLE_IOS(3_0);

可把文字设置成url,或电话号码。
-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIDatePicker.h

选时间的那个滑轮

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIDevice.h

表示设备本身。

名称,型号,操作系统版本信息等,判断设备的物理方向,电池信息,传感器(用来检测前方有没有打物体,打电话的时候脸不会碰到屏幕)

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIDocument.h

顾名思义,文档,一个抽象类。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIDocumentInteractionController.h

调用第三方app打开自己的文件

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIEvent.h

事件类型(触摸,运动,远程控制)

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIFont.h

字体

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIGestureRecognizer.h

UIGestureRecognizerSubclass.h

手势控制   抽象类

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIImage.h

图片

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIImagePickerController.h

继承自UINavigationController

存放图片的控制器。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIImageView.h

图片视图

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIInterface.h

里面是几个类的分类,为一些类增加了一些功能

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIKit.h

内容为一大堆#import

引用了这个头文件,就等于引用了整个UIKit Framework

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIKitDefines.h

几个宏定义

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UILabel.h

label控件

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UILocalizedIndexedCollation.h

管理table view的数据资源,有索引,排序等功能。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UILocalNotification.h

ios 推送,本地通知。。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UILongPressGestureRecognizer.h

长按手势,继承自 UIGestureRecognizer

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIManagedDocument.h

管理文档用,继承自UIDocument

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIMenuController.h

菜单控制器。就是点住文字,出来的那个“复制 粘贴”框。

继承自nsobject(非uiviewcontroller)

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UINavigationBar.h

bar系列,导航

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UINavigationController.h

导航控制器。常用控制器之一。。。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UINib.h

UINibDeclarations.h

UINibLoading.h

大家熟悉的nib

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIPageControl.h

用大比较多,换页用的,继承自uicontrol,是个view

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIPageViewController.h

和上面那个差别较大,是那种翻书的效果

继承自uiviewcontroller

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIPanGestureRecognizer.h

拖拽手势,继承自 UIGestureRecognizer

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIPasteboard.h

粘贴板

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIPickerView.h

老虎机式滑轮

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIPinchGestureRecognizer.h

捏手势,继承自 UIGestureRecognizer

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIPopoverBackgroundView.h

UIPopoverController.h

ipad上的一个控件

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIPrintError.h

UIPrintFormatter.h

UIPrintInfo.h

UIPrintInteractionController.h

UIPrintPageRenderer.h

UIPrintPaper.h

AirPrint功能相关

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIProgressView.h

进度条

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIReferenceLibraryViewController.h

显示词语的解释

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIRefreshControl.h

控件,下拉刷新,继承自control

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIResponder.h

重要的类,view的父类。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIRotationGestureRecognizer.h

旋转手势,继承自 UIGestureRecognizer

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIScreen.h

UIScreenMode.h

屏幕

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIScrollView.h

一个强大的框子

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UISearchBar.h

bar系列,用来搜索。

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UISearchDisplayController.h

同是搜索,继承自nsobjet

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UISegmentedControl.h

分段控件,(一个长方形被切成几段)

继承自nscontrol

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UISlider.h

滑动条

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UISplitViewController.h

ipad控件

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIStepper.h

+-控件

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIStoryboard.h

UIStoryboardPopoverSegue.h

UIStoryboardSegue.h

Storyboard技术

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIStringDrawing.h

string的分类,绘图用

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UISwipeGestureRecognizer.h

轻扫手势,继承自 UIGestureRecognizer

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UISwitch.h

开关控件

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UITabBar.h

bar系列,手机下面那种样子

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UITabBarController.h

控制器,标签栏

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UITabBarItem.h

标签栏的一项。继承自UIBarItem

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UITableView.h

UITableViewCell.h

基础控件,面试必考的内容

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UITableViewController.h

控制器系列

同上

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UITableViewHeaderFooterView.h

Table的头,不过貌似用的比较少,得全部滑完才能看见下面的内容,比较不方便

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UITapGestureRecognizer.h

轻击手势,继承自 UIGestureRecognizer

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UITextChecker.h

ipad相关控件

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UITextField.h

文本框

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UITextView.h

大的文本框

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIToolbar.h

bar系列,工具栏

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UITouch.h

触摸事件,传递的nsset,便是uitouch

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIVideoEditorController.h

控制器,继承自UINavigationController

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIView.h

不解释

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIViewController.h

同上

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIWebView.h

网页视图

-----------------------------------------------------------------------------------<next>---------------------------------------------------------------------------------------------

UIWindow.h

窗口,通常只有一个

-----------------------------------------------------------------------------------<end>---------------------------------------------------------------------------------------------

ps:第一版,本未知的勘误较多,过些日子再做整理。







原创粉丝点击