zoukankan      html  css  js  c++  java
  • UIKit框架使用总结--看看你掌握了多少

    一、经常使用的,基本就是每次项目迭代都需要使用的

    UIView、UILabel、UIImage、UIColor、UIFont、UIImageView、UITextField、UIButton、

    UIScrollView、UITableView、UITableViewCell、UICollectionView、UICollectionViewCell、UITextView、

    UIViewController

    二、偶尔使用,或者说不是每次都要敲出来的

    1、功能专用

    UIPickerView(数据选择器)、UIDatePicker(时间选择器)、UIPageControl(与轮播图结合使用的小圆点)、UISegmentedControl(分栏控制器)、UISlider(滑动控件)、UISwitch(开关)、UIProgressView(进度条)、UIActivityIndicatorView(加载菊花)、UIWebView(加载网页)、UIActionSheet、UIAlertView、

    2、bar和item

    UITabBar、UIToolBar、UINavigationBar、UISearchBar、

    UIBarItem、UITabBarItem、UINavigationItem、UIBarButtonItem、

    3、封装好的功能型控制器

    UITabBarController、UINavigationController、UITableViewController、UICollectionViewController、UISearchDisplayController(搜索结果控制器)

    4、直接使用的类

    UIDevice(设备)、UIApplication(应用程序)、UIScreen(屏幕)、UIWindow(窗口)、UIResponder(响应对象)、UIControl(响应控件)、UIEvent(事件)、UIScreenMode、UITouch(触摸)、

    三、不常用,或者说不是每个项目都需要使用的

    1、手势相关

    UIGestureRecognizer、UILongPressGestureRecognizer、UIPanGestureRecognizer、UIPinchGestureRecognizer、UIRotationGestureRecognizer、UISwipeGestureRecognizer、UITapGestureRecognizer

    2、调用系统媒体工具

    UIImagePickerController(照片)、UIVideoEditorController(视频)

    3、加速计相关

    UIAcceleration(加速计)、UIAccelerometer(加速计)

    4、打印相关

    UIPrintFormatter(打印-格式)、UIPrintInfo(打印-信息)、UIPrintPageRenderer(打印-导出PDF)、UIPrintPaper(打印-纸张)

    5、文本处理相关

    UIMenuController(屏幕长按菜单)、UIMenuItem(屏幕长按菜单选项)、UITextChecker(拼写检查)、UITextPosition、UITextRange、UIPasteboard(剪贴板)

    6、

    UIBezierPath(贝塞尔曲线)、UIDocumentInteractionController(分享文件)、UILocalNotification(本地推送)、UINib(xib文件)

    7、资料都很少

    UITextInputStringTokenizer、UIAccessibilityElement(辅助功能元素)、

    四、不需要使用的

    UISplitViewController、UISimpleTextPrintFormatter、UIMarkupTextPrintFormatter、UIViewPrintFormatter、UIPopverController

    附录:UIKit框架结构图

  • 相关阅读:
    http 请求code状态码
    uni-app实现弹窗遮罩
    小程序分享报错 Cannot read property 'apply' of null;at page XXX onShareAppMessage function
    mac下出现xcrun: error导致git、svn无法使用的解决办法
    uniapp 小程序实现自定义底部导航栏(tarbar)
    Python2.X和Python3.X中Tkinter模块的文件对话框、下拉列表的不同
    Mac 设置git的template
    每天一点点之vue框架开发
    uni-app开发小程序-使用uni.switchTab跳转后页面不刷新的问题
    小程序实现微信朋友圈时间显示效果
  • 原文地址:https://www.cnblogs.com/cchHers/p/10120474.html
Copyright © 2011-2022 走看看