第20月第14天 objc_getAssociatedObject _cmd

1.

- (CustomNavigationControllerDelegate *)customDelegate
{
return objc_getAssociatedObject(self, _cmd);
} - (void)setCustomDelegate:(CustomNavigationControllerDelegate *)customDelegate
{
objc_setAssociatedObject(self, @selector(customDelegate), customDelegate, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

https://www.jianshu.com/p/fdb1bc445266

上一篇:py-day3-1 python 风湿理论之函数即变量


下一篇:Django-CRM项目学习(三)-stark的页面展示