iPhone开发笔记(四)
27、动态设置按钮的图片:
[btContinue setBackgroundImage:[UIImage imageNamed:@"animation_pause.png"] forState:UIControlStateNormal];
28、
UITableView重新加载数据的方法:[tableview reloadData];
UIPickerView重新加载数据的方法:[pickerview reloadAllComponents];
29、中文乱码解决方法:
NSString *temp = [NSString stringWithCString:[thestring cString] encoding:NSUTF8StringEncoding];
30、设置控件的大小于坐标:
thundertimelabel.frame = CGRectMake(61, 20, thundertimelabel.frame.size.width, thundertimelabel.frame.size.height);