UIView显示层初级动画

显示层初级动画属性预览

extension UIView {

    open var frame: CGRect

    open var bounds: CGRect

    open var center: CGPoint

    open var transform: CGAffineTransform

    @NSCopying open var backgroundColor: UIColor?

    open var alpha: CGFloat
}
@property(nullable, nonatomic,copy)  UIColor *backgroundColor UI_APPEARANCE_SELECTOR; 

@property(nonatomic)CGFloat alpha;  // animatable. default is 1.0

// use bounds/center and not frame if non-identity transform. if bounds dimension is odd, center may be have fractional part

@property(nonatomic) CGRect bounds;// default bounds is zero origin, frame size. animatable

@property(nonatomic) CGPoint center; // center is center of frame. animatable

@property(nonatomic) CGAffineTransform transform;   // default is CGAffineTransformIdentity. animatable

   转载规则


《UIView显示层初级动画》 志鹏 采用 知识共享署名 4.0 国际许可协议 进行许可。
 上一篇
Singleton单例 Singleton单例
单例类总是返回自己的同一个实例,它提供了对类的对象所提供资源的全局访问点。单例模式的意图:使得类的一个对象成为系统中的唯一实例。 单例版本1: NS_ASSUME_NONNULL_BEGIN @interface TestManager
2018-10-08 志鹏
下一篇 
UIView常见动画的属性分析 UIView常见动画的属性分析
实现动画的三步曲 设置视图的动画初始状态 添加视图的动画相应属性 设置视图的动画最终状态 UIView常见动画的属性分析UIView常见的属性有哪些? 位置属性 frame bounds centerframe bounds center
2018-09-16 志鹏
  目录