Link
Link

Reputation: 551

UIPopoverController on table view

I have used a UIPopoverController on my toolbar item.. when the user clicked the button it shows a list of items in a table view.. please screenshot below..

enter image description here

Question is how do you focus on the table view on the popup and allow the user to scroll to cell..?

Thanks,

link

Upvotes: 0

Views: 166

Answers (1)

Chris Wagner
Chris Wagner

Reputation: 21003

Ok, so now that I better understand your question. Your UITableViewDelegate for the tableview in your popover should implement tableView:didSelectRowAtIndexPath:. In this method you would do the following.

  1. Determine which row was selected using indexPath
  2. Based on the selected row, filter your datasource for the other tableview and call [myOtherTableView reloadData] directly, post a notification, execute a block, or have another layer of delegation
  3. Dismiss your UIPopoverController

Upvotes: 1

Related Questions