iOS开发_UIKit框架使用总结

1、经常使用的

  • 1.1 基础

    • UIView、 UILabel、UIImage、 UIColor、
    • UIImageView、 UITextField、 UIButton、UIFont
  • 1.2 列表

    • UIScrollView、 UITableView、 UICollectionView、 UITextView
    • UICollectionViewCell、UITableViewCell
  • 1.3 其他

    • UIViewController

2、偶尔使用的

  • 2.1 功能专用

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

    • UITabBar、 UIToolBar、UINavigationBar、UISearchBar
    • UIBarItem、UITabBarItem、UINavigationItem、UIBarButtonItem
  • 2.3 封装好的功能型控制器

    • UITabBarController、 UINavigationController
    • UITableViewController、 UICollectionViewController、 UISearchDisplayController(搜索结果控制器)
  • 2.4 直接使用的类

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

3、不常用

  • 3.1 手势相关

    • UIGestureRecognizer、UILongPressGestureRecognizer、UIPanGestureRecognizer
    • UIPinchGestureRecognizer、UIRotationGestureRecognizer、UISwipeGestureRecognizer
    • UITapGestureRecognizer
  • 3.2 调用系统媒体工具

    • UIImagePickerController(照片)、UIVideoEditorController(视频)
  • 3.3 加速计相关

    • UIAcceleration(加速计)、UIAccelerometer(加速计)
  • 3.4 打印相关

    • UIPrintFormatter(打印-格式)、UIPrintInfo(打印-信息)、UIPrintPageRenderer(打印-导出PDF)、UIPrintPaper(打印-纸张)
  • 3.5 文本处理相关

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

    • UIBezierPath(贝塞尔曲线)、UIDocumentInteractionController(分享文件)、UILocalNotification(本地推送)、UINib(xib文件)
    • UITextInputStringTokenizer、UIAccessibilityElement(辅助功能元素)、
    • UISplitViewController、UISimpleTextPrintFormatter、UIMarkupTextPrintFormatter、UIViewPrintFormatter、UIPopverController

4、UIKit框架结构图

posted @   CH520  阅读(210)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2021-11-24 iOS开发_开启关闭侧滑手势
点击右上角即可分享
微信分享提示
哥伦布
09:09发布
哥伦布
09:09发布
3°
多云
东南风
3级
空气质量
相对湿度
47%
今天
中雨
3°/15°
周三
中雨
3°/13°
周四
小雪
-1°/6°