【发布时间】:2010-12-06 18:02:01
【问题描述】:
我在自定义 UIActionSheet 类中有这个
if (otherButtonTitles != nil) {
[self addButtonWithTitle:otherButtonTitles];
va_list args;
va_start(args, otherButtonTitles);
NSString * title = nil;
while(title = va_arg(args,NSString*)) { // error here
[self addButtonWithTitle:title];
}
va_end(args);
}
我有这个错误
!使用赋值的结果作为不带括号的条件
指向这条线
while(title = va_arg(args,NSString*)) {
这是为什么呢?
谢谢。
【问题讨论】:
标签: iphone objective-c ios