關(guān)于AVplayer播放器內(nèi)存釋放問題?
[_player replaceCurrentItemWithPlayerItem:nil];
Label自適應(yīng)的代碼---
CGRect r = [self.detailModel.intro boundingRectWithSize:CGSizeMake(300,10000) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14.f]} context:nil];
self.detailLabel.frame = CGRectMake(30, 61, UISCREEN_WIDTH - 60, r.size.height + 50);
找到本地文件路徑的方法: