<?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: AGSPopupsContainerViewController in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller/m-p/43340#M399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
AGSPopupInfo *popupInfo = [AGSPopupInfo popupInfoForGraphic:_newFeature];
AGSPopupsContainerViewController *popup = [[AGSPopupsContainerViewController alloc] initWithPopupInfo:popupInfo graphic:_newFeature usingNavigationControllerStack:NO];
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be nice if the AGSPopupsContainerViewController code was opened up as a sample. I've had problems using it offline, so I pretty much had to reimplement the entire thing from scratch (if there was a way to avoid it I'd certainly like to know). I still haven't implemented the attachments viewer/editor, but it would be nice if I had the controller code to work from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, when using the controller on an offline (cached with the init from JSON) feature layer, the controller does not respond when clicking the 'Done' button after editing an attribute.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:39:50 GMT</pubDate>
    <dc:creator>EddieJesinsky</dc:creator>
    <dc:date>2021-12-10T21:39:50Z</dc:date>
    <item>
      <title>AGSPopupsContainerViewController</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller/m-p/43337#M396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from FeatureLayerEditingSample. there is a part of code in FeatureLayerEditingSampleViewController.m&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;stating of initializing the popup view controller from a webmap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as below&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Iniitalize a popup view controller&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; self.popupVC = [[[AGSPopupsContainerViewController alloc] initWithWebMap:self.webmap forFeature:_newFeature usingNavigationControllerStack:NO] autorelease];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what do i do if i am to load this from a offline layer cache ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i was able to modify the code so it actually uses the offlineonline method as below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Add feature layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.OnOffLineLayer = [AGSFeatureLayer featureServiceLayerWithURL:[NSURL URLWithString:FEATURE_SERVICE_URL] mode:AGSFeatureLayerModeOnDemand];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.OnOffLineLayer = [OnlineOfflineFeatureLayer featureServiceLayerWithURL:[NSURL URLWithString:FEATURE_SERVICE_URL] mode:AGSFeatureLayerModeOnDemand];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.OnOffLineLayer.infoTemplateDelegate = self;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.OnOffLineLayer.outFields = [NSArray arrayWithObject:@"*"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now if i could load the feature from the self.OnOfflineLayer it be great. but it just kick me off.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;self.popupVC = [[[AGSPopupsContainerViewController alloc]&amp;nbsp; initWithWebMap:self.OnOffLineLayer forFeature:_newFeature&amp;nbsp; usingNavigationControllerStack:NO] autorelease];&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 00:50:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller/m-p/43337#M396</guid>
      <dc:creator>hermancheah</dc:creator>
      <dc:date>2011-09-10T00:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: AGSPopupsContainerViewController</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller/m-p/43338#M397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should use other init methods of &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/iOS/2.0/reference/interface_a_g_s_popups_container_view_controller.html"&gt;AGSPopupsContainerViewController&lt;/A&gt;&lt;SPAN&gt;. Also, you'll have to create AGSPopupInfo and AGSPopup objects.&lt;/SPAN&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>Sat, 10 Sep 2011 02:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller/m-p/43338#M397</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2011-09-10T02:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: AGSPopupsContainerViewController</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller/m-p/43339#M398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;any sample&amp;nbsp; to create AGSPopupInfo and AGSPopup objects ? please&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 03:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller/m-p/43339#M398</guid>
      <dc:creator>hermancheah</dc:creator>
      <dc:date>2011-09-10T03:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: AGSPopupsContainerViewController</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller/m-p/43340#M399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
AGSPopupInfo *popupInfo = [AGSPopupInfo popupInfoForGraphic:_newFeature];
AGSPopupsContainerViewController *popup = [[AGSPopupsContainerViewController alloc] initWithPopupInfo:popupInfo graphic:_newFeature usingNavigationControllerStack:NO];
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be nice if the AGSPopupsContainerViewController code was opened up as a sample. I've had problems using it offline, so I pretty much had to reimplement the entire thing from scratch (if there was a way to avoid it I'd certainly like to know). I still haven't implemented the attachments viewer/editor, but it would be nice if I had the controller code to work from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, when using the controller on an offline (cached with the init from JSON) feature layer, the controller does not respond when clicking the 'Done' button after editing an attribute.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:39:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller/m-p/43340#M399</guid>
      <dc:creator>EddieJesinsky</dc:creator>
      <dc:date>2021-12-10T21:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: AGSPopupsContainerViewController</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller/m-p/43341#M400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for you word, being of what you said i think this will be a little complicated to do offline editing via popups.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have tried to put this together.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //featureLayer is the offline cache layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.activeFeatureLayer = featureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _newFeature = [self.activeFeatureLayer createFeatureWithTemplate:template];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.activeFeatureLayer addGraphic:_newFeature];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGSPopupInfo *popupInfo = [AGSPopupInfo popupInfoForGraphic:_newFeature];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; popupInfo.title = @"Details";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; popupInfo.allowEditGeometry = YES;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGSPopupsContainerViewController *popup = [[AGSPopupsContainerViewController alloc] initWithPopupInfo:popupInfo graphic:_newFeature usingNavigationControllerStack:NO];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.popupVC = popup;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.popupVC.delegate = self;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //First, dismiss the Feature Template Picker&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [self dismissModalViewControllerAnimated:YES];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Next, Present the popup view controller //ERROR HERE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [self presentModalViewController:self.popupVC animated:YES];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [self.popupVC startEditingCurrentPopup];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;no hope . it failed me&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 02:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller/m-p/43341#M400</guid>
      <dc:creator>hermancheah</dc:creator>
      <dc:date>2011-09-12T02:24:44Z</dc:date>
    </item>
  </channel>
</rss>

