-(UIView*)customViewForGraphic:(AGSGraphic *)graphic screenPoint:(CGPoint)screen mapPoint:(AGSPoint *)mapPoint;
MyTableViewController* vc = [[MyTableViewController alloc] init]; // Do whatever to initialize the table view with data UINavigationController* nc = [[UINavigationController alloc] initWithRootViewController:vc]; UIPopoverController *pc = [[UIPopoverController alloc] initWithContentViewController:nc]; pc.delegate = self; CGPoint screen = [self.mapView toScreenPoint:mappoint]; [self.parcelPopover presentPopoverFromRect:CGRectMake(screen.x-1, screen.y-1, 2, 2) inView:self.mapView permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
A possible workaround - if your app is iPad only.Instead of showing the table in a callout, you could show your table in a UIPopoverController. You would just need to translate the map coordinate to screen coordinate, build a small CGRect around it, and call presentPopoverFromRect. Example:MyTableViewController* vc = [[MyTableViewController alloc] init]; // Do whatever to initialize the table view with data UINavigationController* nc = [[UINavigationController alloc] initWithRootViewController:vc]; UIPopoverController *pc = [[UIPopoverController alloc] initWithContentViewController:nc]; pc.delegate = self; CGPoint screen = [self.mapView toScreenPoint:mappoint]; [self.parcelPopover presentPopoverFromRect:CGRectMake(screen.x-1, screen.y-1, 2, 2) inView:self.mapView permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];I am doing this in one of my projects and it works well.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.