Any gotchas with objc_setAssociatedObject and objc_getAssociatedObject?

后端 未结 2 878
时光取名叫无心
时光取名叫无心 2021-01-01 01:42

I’m looking into ways to add a property (an integer in this case) to all UIView instances, whether they are subclassed or not. Is using objc_setAssociated

2条回答
提交回复
热议问题