【发布时间】:2014-05-04 21:54:53
【问题描述】:
它总是返回 NULL 而不是属性。
objc_property_t property = class_getProperty([UIView class], "frame");
XCTAssertTrue(property != NULL,
@"UIView.frame property should be here.");
例如,center 可以正常工作,但frame 似乎不行。
谁能解释一下?
【问题讨论】: