ios - Accesing the information of a NSArray inside another NSArray -
I am trying to pass data from a collection view controller to the table view controller. What do I want when a user selects an item in the collection then it passes the data of the item to the table view controller, and the table view controller presents the item information based on the chosen item but I do not know How to use data from NSARRA, which is within the second NSARRA
This has declared all member variables inside the implementation file.
_arrayOfChaufa = @ [@ "qUESIto", @ "Jodido", @ "nick", @ "q pajita", @ "Wuauau", @ "Tengo hambrunita", @ "jojolete" , @ "Sequito Doo", @ "Latitititis", @ "Mansuo"]; _arrayOfLomo = @ [@ "jajajaja que buena" @ "lukita", @ "losisisisi" @ "maniserio" @ "joder" @ "joselet" @ "lskadlkdl" @ "Q novedada" ,,,,,,, "@ Bah "]; _arrayOfPapita = @ [@ "Q buena!", @ "CSM !!", @ "Queen Genio!", @ "Nwadades", @ "Queen Rico !!", @ "Cogher Deliiosooso", @ "Mifff"]; _arrayOfParihuela = @ [@ "An culaso", @ "Chambon", @ "Noveades", @ "Que hacer", @ "asu masculine", @ "Espero que es bien", @ "Asi es la vida la chamba", @ @ "Debo Upender Month !!"]; _arrayOfTacacho = @ [@ "Tacchin", @ "Lililinon", @ "Massinis", @ "Zodder", @ "Ozozujojo", @ "Lisa Harmosa!"]; _arrayOfAnticucho = @ [@ "Me encanta Objective-C", @ "Hermosisimo", @ "Me xcode encanta!", @ "Q Hermoso es esto", @ "Debbe Services United Chambon Total", @ "jajajaja novedades" @ "Lol Supreme"]; _arrayOfCuy = @ [@ "To Me Querius Escapar Ahhh Jazz", @ "Novade de la Vida", @ "Jojozajo", @ "AppleIre al Major !!!"]; _arrayOfPachamanca = @ [, @ "Lo lograre Carajo!", @ "Esto Es Easy", @ "De La Lista El Ultimo Array" @ "Se se puede Carajo", @ "Mi primera aplicaciĆ³n!", "@Sobreviviree Guerreros !! "]; *** It is NSARRAY that all NSARRAYS *** _arrayOfIngredients = @ [@ "_ArrayOfCeviche, _arrayOfPachamanca, _ArrayOfLomo, _RrayOfCuy, _ArrayOfChaufa, _RrayOfContAkO, _RRAOfPariHUELA, _RRAYAFTacacho, _RARAOfPapita"];];
My problem begins here .....
- (zero) view the archive: (UICollectionView *) CollectionView didDeselectItemAtIndexPath: (NSINPPath *) IndexPath {[Self Display Cigu with Identifier: @ "Show Deleted" From: IndexPath]; } // Method to pass data to another view - (zero) prepareForSegue: (UIStoryboardSegue *) segue this: (id) this {if ([isEqualToString segue.identifier: @ "showDetail"]) {NSIndexPath * indexPath = (NSIndexPath *) sender; DetailViewController * dvc = [Destination Destination Viewer]; *** This part is my problem. Please help me *** dvc.itulos = [_arrayOfIngredients objectAtIndex: indexPath.row]; }}
Do not use an NSString here:
_arrayOfIngredients = @ [_ArenOfCeviche, _arrayOfPachamanca, _arrayOfLomo, _arrayOfCuy, _arrayOfChaufa, _arrayOfAnticucho, _arrayOfParihuela, _arrayOfTacacho, _arrayOfPapita];
Comments
Post a Comment