摘要: NSArray *imageArr = @[@[@"查看地图",@"map_hy.png"], @[@"联系号码",@"phone_hy.png"], @[@"我要咨询... 阅读全文
posted @ 2016-01-18 18:06 LeoMabi 阅读(156) 评论(0) 推荐(0)
摘要: tableviewName.tableFooterView = [[UIView alloc]initWithFrame:CGRectZero]; 阅读全文
posted @ 2016-01-18 18:03 LeoMabi 阅读(112) 评论(0) 推荐(0)
摘要: - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{ if (section == 3) { return 0; } return 10;}... 阅读全文
posted @ 2016-01-18 18:02 LeoMabi 阅读(190) 评论(0) 推荐(0)
摘要: headimageView=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, DEVW, DEVW/2)]; headimageView.contentMode = UIViewContentModeScaleAspectFit; ... 阅读全文
posted @ 2016-01-18 15:22 LeoMabi 阅读(366) 评论(0) 推荐(0)
摘要: 1:动态添加uibutton- (IBAction)addButton:(id)sender { CGRect frame = CGRectMake(90, 200, 200, 60); UIButton *someAddButton = [UIButton buttonWithType... 阅读全文
posted @ 2016-01-14 15:11 LeoMabi 阅读(571) 评论(0) 推荐(0)
摘要: //计算文本高度 NSString *lltxt =[[NSString alloc]initWithFormat:@"浏览:%@",[strJson objectForKey:@"visitCount"]]; NSString *xztxt =[[NSString alloc]init... 阅读全文
posted @ 2016-01-11 15:34 LeoMabi 阅读(313) 评论(0) 推荐(0)
摘要: 1.计算输入文字在指定字体、指定容器和指定换行方式下的size. CGSizeconstraintSize; constraintSize.width=300; constraintSize.height=MAXFLOAT; CGSizesizeFrame =[textContent sizeW... 阅读全文
posted @ 2016-01-11 15:18 LeoMabi 阅读(746) 评论(0) 推荐(0)
摘要: //初始化 NSString *key1 = @"key1"; NSString *key2 = @"key2"; NSString *key3 = @"key3"; NSString *key4 = @"key4"; NSStr... 阅读全文
posted @ 2016-01-08 14:14 LeoMabi 阅读(128) 评论(0) 推荐(0)
摘要: /*---------------------NSArray---------------------------*///创建数组NSArray *array1 = [NSArray arrayWithObject:@"1"];NSArray *array2 = [NSArray arrayWith... 阅读全文
posted @ 2016-01-08 11:39 LeoMabi 阅读(152) 评论(0) 推荐(0)
摘要: NSString *reqData = @"Data=";NSData *postDatas = nil;NSString *urlPath = @"url";//组json字符串数据NSMutableDictionary *mulDic = [[[NSMutableDictionary alloc... 阅读全文
posted @ 2016-01-08 11:35 LeoMabi 阅读(955) 评论(0) 推荐(0)