Abdullah Alioski Abdullah Alioski - 1 month ago 13
Objective-C Question

Memory warning when trying to load images in Collection View on iOS 7

I get this warning, when loading images in Collection View on iOS7

warning:

failed to set breakpoint site at 0x11428984c for breakpoint 1.1: Unable to read memory at breakpoint address.


And this is how I load the images

-(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;
}

Answer

This is not a memory warning, your code works fine and won't crash because of a memory insufficiency. This warning is most probably caused by some internal Xcode IDE code, that tries to set a dynamic breakpoint using LLDB at some point in memory address "0x11428984c", but fails, because it is unable to read it.