【发布时间】:2014-04-03 11:54:28
【问题描述】:
在 iOS7 上的 Collection View 中加载图像时收到此警告
警告:failed to set breakpoint site at 0x11428984c for breakpoint 1.1: Unable to read memory at breakpoint address.
这就是我加载图像的方式
-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView1
cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
cellDesign* newCell = [collectionView1 dequeueReusableCellWithReuseIdentifier:@"myCell" forIndexPath:indexPath];
NSString *str = [combinedArrays[indexPath.section] objectAtIndex:indexPath.row];
newCell.templateName.text = str
newCell.displayTemplate.image = [UIImage imageNamed:str];
return newCell;
}
【问题讨论】:
标签: objective-c ios7 memory-leaks uiimage uicollectionview