2
它总是返回一个NULL而不是属性。为什么无法用class_getProperty获取UIView.frame属性?
objc_property_t property = class_getProperty([UIView class], "frame");
XCTAssertTrue(property != NULL,
@"UIView.frame property should be here.");
正常工作与center
例如,但frame
好像不是。
有人可以解释一下吗?