上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 98 下一页
摘要: 阅读全文
posted @ 2013-07-06 20:03 路在脚下, 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-07-06 18:48 路在脚下, 阅读(145) 评论(0) 推荐(0) 编辑
摘要: CGSize contentSize = [self.contentLabel.textsizeWithFont:self.contentLabel.fontconstrainedToSize:CGSizeMake(self.contentLabel.frame.size.width,MAXFLOAT) lineBreakMode:NSLineBreakByWordWrapping];有下面这玩意计算 高度计算不准确, // self.contentLabel.lineHeightMultiple = 1.5; 阅读全文
posted @ 2013-07-06 17:50 路在脚下, 阅读(160) 评论(0) 推荐(0) 编辑
摘要: self.titleLabel.frame = CGRectMake(self.titleLabel.frame.origin.x, self.titleLabel.frame.origin.y, self.titleLabel.frame.size.width, self.titleLabel.frame.size.height); 阅读全文
posted @ 2013-07-06 17:21 路在脚下, 阅读(159) 评论(0) 推荐(0) 编辑
摘要: '+[RepositoryDetailViewController setFrame:]: unrecognized selector sent to class 0x1ae820'给 controller设置 frame了,搞笑, 原来是 给 tableview加 view的原因,viewforheader instead. self.myTableView.contentInset = UIEdgeInsetsMake(10, 0, 0, 0); 阅读全文
posted @ 2013-07-06 16:39 路在脚下, 阅读(174) 评论(0) 推荐(0) 编辑
摘要: NSString *searchText = [self.searchTextField.textstringByTrimmingCharactersInSet:[NSCharacterSetwhitespaceAndNewlineCharacterSet]]; if (!searchText.length > 0) { [selfshowAlertWithTitle:nilmessage:@"请输入搜索关键字!"]; } 阅读全文
posted @ 2013-07-06 16:10 路在脚下, 阅读(301) 评论(0) 推荐(0) 编辑
摘要: -(void)calculateHeight:(NSArray *)arr{ if (!heightArray) { heightArray = [[NSMutableArray alloc] init]; } for (TagItemInfo *info in arr) { NSString *contentStr = info.content; CGSize contentSize = [contentStr sizeWithFont:[UIFontboldSystemFontOfSize:14.0] constrainedToSize:CGSizeMake(280... 阅读全文
posted @ 2013-07-06 15:55 路在脚下, 阅读(236) 评论(0) 推荐(0) 编辑
摘要: medicineView.frame = CGRectMake(15, 10, 290, medicineViewHeight - 10); 当medicineViewHeight = 0 的时候,系统 是无法显示 -10的,测试中 获得 高度是 10,识别成10了,因此 下次要注意设置高度可能的值了, 阅读全文
posted @ 2013-07-06 13:27 路在脚下, 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-07-06 13:22 路在脚下, 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-07-06 11:46 路在脚下, 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 98 下一页