我似乎無法正確替換棄用的sizeWithFont
和boundingRecWithSize
。我搜遍了所有的答案,並徹夜試圖解決這個問題。我真的需要某個人比我聰明的方式提供幫助。下面是我正在修改的代碼。任何幫助,將不勝感激。IOS 7 sizeWithFont已棄用
CGSize sizeForText = [faqItem.answer sizeWithFont:[UIFont boldSystemFontOfSize:14]
constrainedToSize:CGSizeMake(self.tblView.bounds.size.width - padding, MAXFLOAT)
lineBreakMode:NSLineBreakByWordWrapping];
[sectionInfo insertObject:[NSNumber numberWithFloat:roundf(sizeForText.height + 5)]
inRowHeightsAtIndex:0];
可能重複的[置換棄用sizeWithFont:在IOS 7](http://stackoverflow.com/questions/18897896/replacement-for-deprecated-sizewithfont-in-ios-7) –