- 博客(4)
- 资源 (3)
- 收藏
- 关注
原创 UIButton
一、for循环定义UIButton,默认选中第一个 -(void)oilChoice { for (int i=0; i<3; i++) { oilChoice=[[UIButton alloc] initWithFrame:CGRectMake(15+i*40, 15,30,50)]; [oilChoice addTarget:self
2016-03-01 10:57:16 224
原创 ios-cell多行文字高度自适应
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *ID=@"cell"; UITableViewCell *cell=[tableView dequeueReusableCellWith
2015-10-14 13:24:05 432
原创 iOS-textfile属性
//初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)]; //设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderStyleRoundedRect; typed
2015-10-08 16:01:05 922
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人