【发布时间】:2010-12-31 21:58:57
【问题描述】:
每当我执行下面的代码时,无论我为 buttonWithType 指定什么,我总是得到 button type = 0。有谁知道这种行为的解释?我试图根据按钮的类型来区分按钮显然没有成功,因为 buttonType 属性似乎已损坏(或无用)。一如既往,非常感谢您提供的任何启发!
UIButton *button = [[UIButton buttonWithType:UIButtonTypeDetailDisclosure] retain];
button.frame = frame;
NSLog(@"###################### LeftCalloutButtons - buttonWithTitle(73) - button type = %d",button.buttonType);
【问题讨论】:
标签: iphone iphone-sdk-3.0 properties uibutton