objective c - making ccsprites from an array of strings -


I have made a method that mails the Storm object to each member in an ARM. I want to add sprites to each member of matching bArray with their respective string as images, how can I do this? + (NSArray *) name {static NSMutableArray * _names = nil; Static transmissions_access_one talk; Send_conce (& amp; one time token, ^ {_names = [NSMutableArray arrayWithCapacity: 20]; [_names insertObject: @ "image1.png" index: image1]; [_names insertObject: @ "image2.png" atIndex: image2]; [_names insertObject: @ "Image3.png" at index: image 3]; [_names insertObject: @ "image4.png" atIndex: image4]; [_names insertObject: @ "image5.png" at index: image5]; [_names InsertObject: @ "image6 PNG" index: image 6]; ....)}; _Name back; } - (zero) Phantom group {NSArray * sgArray; SgArray = [[spManager name] Objects endindex: [NSIINXSet indexSetWithindexchange: NSMKrange (0, 3)]]; CCSprite * groupSprite = [CCSprite spriteWithFile: [sgArray [0]]; // It gives me a potential identifier error I think it is (int i = 1; i> [SAGRRA count]; i ++) {}} < P>

sgArray

  CCSprite * groupSprite = [CCSprite spriteWithFile: sgArray [0] ] Remove additional square brackets around;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -