摘要:
-(void)checkboxClick:(UIButton *)btn{btn.selected = !btn.selected;}- (void)viewDidLoad {UIButton *checkbox = [UIButton buttonWithType:UIButtonTypeCustom];CGRect checkboxRect = CGRectMake(135,150,36,36);[checkbox setFrame:checkboxRect];[checkbox setImage:[UIImage imageNamed:@"checkbox_off.png&qu 阅读全文
摘要:
输出BOOL值的方法:NSLog(@"%@",YES?@"YES":@"NO");%@输出字符串。NSLog(@"ifReadOnly value: %@" ,ifReadOnly?@"YES":@"NO"); 阅读全文