阅读背景:

在super之前的方法调用中使用self。init初始化self,不能通过方法调用来初始化属性。

来源:互联网 

I'm curious is there is anyway to call a method inside your init method that sets instance properties of the class. Essentially I just have a class that sub-classes UIView, adds some subviews in init, and some of those subviews are instance variables of the class.I'm curious is there is anyway to call a method




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: