Displaying AGSPopupsViewController in WebMap

462
2
06-10-2013 06:57 AM
BillGrow
New Contributor II
Hi All,

I am trying to display an AGSPopupsViewController from my MapViewController with:

[self presentViewController:self.popupVC animated:yes completeion:nil]


However, when the event is fired, it throws the error:

Warning: Attempt to present <AGSPopupsContainerViewController: 0x17243490> on <CAMapViewController: 0x9918700> whose view is not in the window hierarchy!


Any help would be appreciated.  Let me know if you need any more info/code.

Thanks,
~Bill
0 Kudos
2 Replies
DiveshGoyal
Esri Regular Contributor
There are number of suggestions on stack-overflow to get past this problem.
0 Kudos
BillGrow
New Contributor II
Thanks Divesh,

I can successfully present other view controllers that are created in the storyboard, but I am creating this controller dynamically with:

self.popupVC = [[AGSPopupsContainerViewController alloc] initWithWebMap:self.webMap forFeature:_newFeature usingNavigationControllerStack:YES];


Would you know if there is anyway I could dynamically insert this AGSPopupsViewController into the navigation contorller, or tie it to and existing UIViewController?

Thanks!
0 Kudos