
Untitled
By: a guest on
Apr 18th, 2012 | syntax:
None | size: 0.89 KB | hits: 29 | expires: Never
- (void)selectTable:(TITable *)table {
TIPickerViewController *viewController;
NSMutableArray *titles;
TISection *section;
viewController = (TIPickerViewController *)[self.storyboard instantiateViewControllerWithIdentifier:@"Picker View"];
viewController.delegate = self;
titles = [[NSMutableArray alloc] initWithCapacity:[[TableIQ shared].site.waitStationTemplate.sections count] + 1];
[titles addObject:@""];
for (section in [TableIQ shared].site.waitStationTemplate.sections)
[titles addObject:section.name];
viewController.titles = titles;
// HERE
tablePopoverController = [[UIPopoverController alloc] initWithContentViewController:viewController];
[tablePopoverController presentPopoverFromRect:table.frame inView:floorplanView permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}