【发布时间】:2010-03-17 18:16:06
【问题描述】:
我在简单地为 UI Button 赋值时遇到了麻烦:
//Assume rect is defined
rect = CGRectMake(13, 10, 48, 48);
profileButton = [[UIButton alloc] initWithFrame:rect];
profileButton.buttonType = UIButtonTypeCustom;
在尝试将 buttonType 分配给 UIButtonTypeCustom 时,我收到“无法设置对象 - 找到只读属性或设置器”。
【问题讨论】:
标签: iphone objective-c cocoa cocoa-touch iphone-sdk-3.0