【发布时间】:2013-12-30 12:51:22
【问题描述】:
我试图在 +(void) 方法中调用 BOOL,但我不能。为什么它不会在+(void) 方法中设置?虽然它正在处理所有 -(void) 方法。
.h
@property (nonatomic, assign) BOOL line;
.m
+ (void)normalizeCell:(UITableViewCell *)cell withLables:(NSArray *)lbls sx:(CGFloat)sx widths:(NSArray *)widths
if (![cell.contentView viewWithTag:22])
{
UIImageView *gb = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"table.png"]];
gb = 22;
[cell.contentView addSubview:gb];
[gb release];
}
【问题讨论】:
-
请停下来阅读整个问答:stackoverflow.com/questions/1053592/…
标签: ios objective-c boolean void