阅读背景:

Subclass / Extend UIView所有其他视图(UIImageView,UITextField ...)在创建时继承

来源:互联网 

what is the suggested approach when I want to add a functionality to UIView so all views inside my app get those? As a matter of fact I need to add some stored properties too so an Extension is not possible. Since I need to deal with Textfields, ImageViews, Views (and who knows what else will come) I dont want to subclass every each of the too add that functionality, so the goal would be to make a subclass of UIView and all my controls (if its possible) get that functionality out of the box.what is the suggested approach when I want to a




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

分享到: