首页 > Web开发 > 详细

metaClass

时间:2018-01-21 01:00:00      阅读:251      评论:0      收藏:0      [点我收藏+]

In object-oriented programming, a metaclass is a class whose instances are classes. Just as an ordinary class defines the behavior of certain objects, a metaclass defines the behavior of certain classes and their instances.fa

 

元类定义了类的通用属性;

是类方法;

建立了类层面的依赖选择;

 

+ (Class)layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.

 

它配置的属性或者是根、或者是他的更上一层的抽象。

元类用于更改类的结构和行为。有缺省的结构。

metaClass

原文:https://www.cnblogs.com/feng9exe/p/8322306.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!