UIView 02

作者: dzhou3 | 来源:发表于2017-08-13 16:58 被阅读0次

最近发现UIView最基本的一些内容都没有理解好,因此打算阅读官方文档的同时也把自己所学习的记录下来。
https://developer.apple.com/documentation/uikit/uiview

UIView
a view object renders its content within its bounds rectangle and handles any interactions with that content.

Main Responsibilities:
drawing and animation
layout and subview management
event handling

drawRect
when actual of view content changes,it's your responsibility to notify the system to redraw setNeedsDisplay
define GLKView not UIView when use OpenGL EL for drawing

manipulations to your app's user interface must occur on main thread.the only time this may not necessary strictly occur is creating the view object itself.

相关文章

  • UIView 02

    最近发现UIView最基本的一些内容都没有理解好,因此打算阅读官方文档的同时也把自己所学习的记录下来。https:...

  • iOS零星知识点 - 04

    查看提示 pragma mark - 01 UIView 的触摸事件处理 pragma mark - 02 手势识...

  • (转载)iOS 开发之动画篇 - 从 UIView 动画说起

    iOS 开发之动画篇 - 从 UIView 动画说起 2016-02-15 06:19编辑:lansekuangt...

  • UIView动画

    01 运动小球 代码下载 02 点击按钮消失(UIView动画方式) 代码下载 03 点击按钮消失(block动画...

  • [关于UIView.UILabel.UIButton.UIIma

    一. UIView /* UIView 的创建 */UIView *view = [[UIView alloc] ...

  • 每行四个不定数量的小标签

    -(UIView *)text { UIView *labelView = [[UIView alloc] ini...

  • iOS-视图之UIView

    初识UIView 剖析UIView 初识UIView 先来看看在代码中如何创建一个UIView UIView也是用...

  • 02 UIView的几个方法

    layoutSubviews在以下情况下会被调用:1、init初始化不会触发layoutSubviews2、add...

  • iOS 动画

    UIView基础动画实现方式一 UIView位置大小动画UIView颜色动画UIView透明度动画 UIView基...

  • UIView

    //UIview给大小 UIView *redview = [[UIView alloc]initWithFram...

网友评论

      本文标题:UIView 02

      本文链接:https://www.haomeiwen.com/subject/fpjerxtx.html