provideal / MMGridView

A simple grid view / dashboard component for iOS
324 stars 58 forks source link

Push data to detailView #23

Closed nolanRatu closed 11 years ago

nolanRatu commented 11 years ago

Hi

I'm struggling to push data when a cell is selected, in a tableview didSelect it would be

detailViewController.treeData = [self.ds objectAtIndex:[self.tableView indexPathForSelectedRow].row];

what would it be in MMGridview

Thanks

mosamer commented 11 years ago

Can you please put more explanation to the issue? What exactly do you mean by "pushing data"?

nolanRatu commented 11 years ago

Hi Mosamer

I have images and text that I wish to show in my detail view once a cell has been selected. The first cell selection is correct and shows a name and text of the cell in the detail view, but when i go back to the grid view and select another cell it stays the same as my first cell selection and never changes.

pragma - MMGridViewDataSource

// ----------------------------------------------------------------------------------

pragma - MMGridViewDelegate

renspr commented 11 years ago

Hi,

you should instantiate your detail view controller in didSelectCell:atIndex: and then push it to your navigationController.

Regards, René