Note that there are some explanatory texts on larger screens.

plurals
  1. POstoring images in array
    primarykey
    data
    text
    <p>I'm trying to store my images in an array named <strong>"_images"</strong> but if I use <code>NSLog()</code> to view the data stored in image array, I get only one image. Would you guys help me out? Here's my code:</p> <pre><code>_images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo1.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo2.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo3.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo4.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo5.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo6.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo7.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo8.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo9.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo10.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo11.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo12.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo13.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo14.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo15.png"]]; _images =[NSMutableArray arrayWithObject:[UIImage imageNamed:@"logo16.png"]]; NSLog(@"ha ha ha:%d",_images.count); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload