iphone - Populate tableView with more than one array -


short version: A table is a way of populating a specific row with one value from one array, then a Populate the second See the row in the same table with a value from a different array? For example, in cell 1 the first value of the array A will be, the first value of array B in cell 2 will be, the cell 3 will be the first value from the array, etc.

Long version: I hope that it is not very misleading. I have an array of names, and then with the work associated with those people, three more arrays, for example, in the name array, Jim, Bob , And there is a lawsuit, and then there is an array for eating, reading and sleeping, which makes every person one of these things every time (all these arrays are populated with MySQL database). The name table is used to populate the root table view. Tapping on one of the names is an extension view controller that has another table view with only three rows, this part is working fine.

What do I have to do, when I tap on a name, it goes to see in detail and then three cells will show the last event for that person, three activities, one of the three events Tapping on then moves a new view controller with a table view that shows each event in that category.

For example, if I had to tap on Bob, the second page would eventually read Bob, read and sleep. Tapping on the first line will have a table that Bob has eaten every time he has eaten.

So far, I am only able to populate from one table to another with all rows from any array. I need it in another way (one line from all arrays).

Absolutely. In the step, your second tableview will include inserting the correct code in two ways:

  - (NSInteger) table view: (UITableView *) table view numberofFirezInSAS: (NSInteger) section  
- (UITableViewCell *) TableView: (UITableView *) Table View CellForAind Pound: (NSIndexPath *) indexPath

Your NumberOfRowsInSection method simply return 3, since there are only three rows, and your cellphoneUroutindpath will check its index parameters. 0, 1 or 2 (possible values) or not. If it is zero, then fill the cell with appropriate data from the array of food. If it is one, then fill it with the array of reading and if two, then fill it with the gold array. Or whatever is appropriate.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -