如果object_getIvar中的变量是基本数据类型(例如,float,int,bool),我如何根据文档返回指针(id)来获取值.我已经尝试转换为int,int*但是当我尝试将其转换为NSLog时,我收到有关不兼容指针类型的错误.
variables objective-c return-value objective-c-runtime
objective-c ×1
objective-c-runtime ×1
return-value ×1
variables ×1