<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem putting a UINavigationViewController inside a callout in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-putting-a-uinavigationviewcontroller/m-p/744594#M6712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wonder if you need to ask the UINavigationController instance for the proper size of the item you are adding to it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2012 15:47:56 GMT</pubDate>
    <dc:creator>PaulLohr</dc:creator>
    <dc:date>2012-07-31T15:47:56Z</dc:date>
    <item>
      <title>Problem putting a UINavigationViewController inside a callout</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-putting-a-uinavigationviewcontroller/m-p/744593#M6711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm implementing an identification workflow that uses a UINavigationController that contains a series of UITableViews that allow the user to drill down into the data. Unfortunately, when I insert the navigation controller view into the callout, it weirdly overhangs the UITableView it contains:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16435[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see, the navigation bar overhangs the top row of the table, which is difficult to see and access from under it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the following code to put the view up:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
-(void)identifyTask:(AGSIdentifyTask *)identifyTask operation:(NSOperation *)op didExecuteWithIdentifyResults:(NSArray *)results
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"Identify task returned with %d results.", [results count]);
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (results &amp;amp;&amp;amp; results.count &amp;gt; 0) 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyResultsViewController *idWindow = [[IdentifyResultsViewController alloc] init];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; idWindow.results = results;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:idWindow];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.callout.customView = nvc.view;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nvc.view.frame = CGRectMake(0, 0, 275, 400);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [map showCalloutAtPoint:self.mapPoint];
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've played around with setting the frame of the idWindow.view, but haven't had any luck with that. Are there any better ways to get this layout working correctly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 13:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-putting-a-uinavigationviewcontroller/m-p/744593#M6711</guid>
      <dc:creator>DanielMonego</dc:creator>
      <dc:date>2012-07-27T13:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem putting a UINavigationViewController inside a callout</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-putting-a-uinavigationviewcontroller/m-p/744594#M6712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wonder if you need to ask the UINavigationController instance for the proper size of the item you are adding to it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 15:47:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-putting-a-uinavigationviewcontroller/m-p/744594#M6712</guid>
      <dc:creator>PaulLohr</dc:creator>
      <dc:date>2012-07-31T15:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem putting a UINavigationViewController inside a callout</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-putting-a-uinavigationviewcontroller/m-p/744595#M6713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just set the navigation view controller's frame before setting it as callout custom view and it should fix it. See code below...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;-(void)identifyTask:(AGSIdentifyTask *)identifyTask operation:(NSOperation *)op didExecuteWithIdentifyResults:(NSArray *)results
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"Identify task returned with %d results.", [results count]);
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (results &amp;amp;&amp;amp; results.count &amp;gt; 0) 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyResultsViewController *idWindow = [[IdentifyResultsViewController alloc] init];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; idWindow.results = results;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:idWindow];

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set the frame before setting the callout custom view
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nvc.view.frame = CGRectMake(0, 0, 275, 400);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.callout.customView = nvc.view;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [map showCalloutAtPoint:self.mapPoint];
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:41:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-putting-a-uinavigationviewcontroller/m-p/744595#M6713</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2021-12-12T07:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem putting a UINavigationViewController inside a callout</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-putting-a-uinavigationviewcontroller/m-p/744596#M6714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just set the navigation view controller's frame before setting it as callout custom view and it should fix it. See code below...&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;-(void)identifyTask:(AGSIdentifyTask *)identifyTask operation:(NSOperation *)op didExecuteWithIdentifyResults:(NSArray *)results
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"Identify task returned with %d results.", [results count]);
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (results &amp;amp;&amp;amp; results.count &amp;gt; 0) 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdentifyResultsViewController *idWindow = [[IdentifyResultsViewController alloc] init];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; idWindow.results = results;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:idWindow];

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set the frame before setting the callout custom view
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nvc.view.frame = CGRectMake(0, 0, 275, 400);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.callout.customView = nvc.view;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [map showCalloutAtPoint:self.mapPoint];
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Nimesh&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug? Why does this happen with UINavigationController but not with a stock UIViewController? I also noticed that if you set the callout's customView to a generic UIViewController, then some time later set it to a UINavigationController you don't see this issue with the nav bar.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:41:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/problem-putting-a-uinavigationviewcontroller/m-p/744596#M6714</guid>
      <dc:creator>AaronConnolly</dc:creator>
      <dc:date>2021-12-12T07:41:15Z</dc:date>
    </item>
  </channel>
</rss>

