首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

iPhone开发札记(四)

2012-07-19 
iPhone开发笔记(四)27、动态设置按钮的图片:[btContinue setBackgroundImage:[UIImage imageNamed:@animat

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);

热点排行