摘要:
阅读全文
摘要:
阅读全文
摘要:
CGSize contentSize = [self.contentLabel.textsizeWithFont:self.contentLabel.fontconstrainedToSize:CGSizeMake(self.contentLabel.frame.size.width,MAXFLOAT) lineBreakMode:NSLineBreakByWordWrapping];有下面这玩意计算 高度计算不准确, // self.contentLabel.lineHeightMultiple = 1.5; 阅读全文
摘要:
self.titleLabel.frame = CGRectMake(self.titleLabel.frame.origin.x, self.titleLabel.frame.origin.y, self.titleLabel.frame.size.width, self.titleLabel.frame.size.height); 阅读全文
摘要:
'+[RepositoryDetailViewController setFrame:]: unrecognized selector sent to class 0x1ae820'给 controller设置 frame了,搞笑, 原来是 给 tableview加 view的原因,viewforheader instead. self.myTableView.contentInset = UIEdgeInsetsMake(10, 0, 0, 0); 阅读全文
摘要:
NSString *searchText = [self.searchTextField.textstringByTrimmingCharactersInSet:[NSCharacterSetwhitespaceAndNewlineCharacterSet]]; if (!searchText.length > 0) { [selfshowAlertWithTitle:nilmessage:@"请输入搜索关键字!"]; } 阅读全文
摘要:
-(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... 阅读全文
摘要:
medicineView.frame = CGRectMake(15, 10, 290, medicineViewHeight - 10); 当medicineViewHeight = 0 的时候,系统 是无法显示 -10的,测试中 获得 高度是 10,识别成10了,因此 下次要注意设置高度可能的值了, 阅读全文
摘要:
阅读全文
摘要:
阅读全文