<?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 adding a new features in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller-adding-a-new/m-p/513804#M4395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Singh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for responding,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the done button, But not enough, because i needed to add more button and i couldnt find anymore wayaround. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but just wondering about the part you said &lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;To compensate for the original done button you can have a custom button with custom action to dismiss the popups container view controller.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;How can i add a custom button over there ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Apr 2016 11:33:17 GMT</pubDate>
    <dc:creator>ozcandurak</dc:creator>
    <dc:date>2016-04-25T11:33:17Z</dc:date>
    <item>
      <title>AGSPopupsContainerViewController adding a new features</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller-adding-a-new/m-p/513802#M4393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;I m developing an application with &lt;STRONG&gt;&lt;EM&gt;ArcGIS SDK&lt;/EM&gt;&lt;/STRONG&gt; on iphone with&lt;STRONG&gt;&lt;EM&gt; Swift.&lt;/EM&gt;&lt;/STRONG&gt; Really appreciate you guys made almost everything easy for developers. I have 2 question if you can help with where i m really stuck at.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;First question :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I m using your Offline Editing Feature Sample on github for swift.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I would like to add a button apart from (Done &amp;amp; Action) but couldn't achieve that yet with “&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;EM&gt;AGSPopupsContainerViewController&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;” class. With the new button i would like to show “Related Record”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Or if there is a way to append the related record info under the same popup that would be better.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;Second question :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;When clicking on feature the callout popsup. I would like to display these . &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;How can i call these within the callout.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;IMG alt="mockup.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/194897_mockup.png" /&gt;&lt;/EM&gt;&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;Thank you so much in advance.&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 11:21:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller-adding-a-new/m-p/513802#M4393</guid>
      <dc:creator>ozcandurak</dc:creator>
      <dc:date>2016-04-15T11:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: AGSPopupsContainerViewController adding a new features</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller-adding-a-new/m-p/513803#M4394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;I would like to add a button apart from (Done &amp;amp; Action) but couldn't achieve that yet with “&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-weight: inherit; font-family: inherit; font-style: inherit;"&gt;&lt;EM&gt;AGSPopupsContainerViewController&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;” class. With the new button i would like to show “Related Record”.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can use the &lt;STRONG&gt;doneButton&lt;/STRONG&gt; property on &lt;STRONG&gt;AGSPopupsContainerViewController&lt;/STRONG&gt; to define your custom buttons. Just create a view with the required buttons, and use the &lt;STRONG&gt;initWithCustomView&lt;/STRONG&gt; initializer on &lt;STRONG&gt;UIBarButtonItem&lt;/STRONG&gt; to create a bar button item and assign it to the &lt;STRONG&gt;doneButton&lt;/STRONG&gt; property. To compensate for the original done button you can have a custom button with custom action to dismiss the popups container view controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;When clicking on feature the callout popsup. I would like to display these . &lt;/SPAN&gt;&lt;SPAN class="s1" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;How can i call these within the callout.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;With "these" I am assuming you mean the action sheet in callout in the screenshot. I don't think you can have an action sheet inside a custom view and more over it won't look right. But you can definitely have your custom view with different buttons inside a callout. Take a look at this &lt;A href="https://github.com/Esri/arcgis-runtime-samples-ios/tree/master/CustomCalloutSample"&gt;sample&lt;/A&gt;​.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the plus minus buttons in the screenshot, which I am assuming are there for zoom in and out. I think you don't really need them because its a touch device, you can simply pinch-out and pinch-in or tap with one finger and tap with two fingers to zoom in and out respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 22:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller-adding-a-new/m-p/513803#M4394</guid>
      <dc:creator>GagandeepSingh</dc:creator>
      <dc:date>2016-04-19T22:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: AGSPopupsContainerViewController adding a new features</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller-adding-a-new/m-p/513804#M4395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Singh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for responding,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the done button, But not enough, because i needed to add more button and i couldnt find anymore wayaround. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but just wondering about the part you said &lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;To compensate for the original done button you can have a custom button with custom action to dismiss the popups container view controller.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;How can i add a custom button over there ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 11:33:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller-adding-a-new/m-p/513804#M4395</guid>
      <dc:creator>ozcandurak</dc:creator>
      <dc:date>2016-04-25T11:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: AGSPopupsContainerViewController adding a new features</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller-adding-a-new/m-p/513805#M4396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at the description for &lt;STRONG&gt;doneButton&lt;/STRONG&gt; here: &lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_popups_container_view_controller.html#ac2c1303cdbe71d9c020a119d39998b39" title="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_popups_container_view_controller.html#ac2c1303cdbe71d9c020a119d39998b39"&gt;10.2.5: AGSPopupsContainerViewController Class Reference&lt;/A&gt;​ it says &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Roboto, sans-serif; font-size: 14px;"&gt;You can replace the button that appears on the left side of the Navigation Bar with a custom button through this property.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means if you create your own &lt;STRONG&gt;UIBarButtonItem&lt;/STRONG&gt; for related records and assign it to the &lt;STRONG&gt;doneButton&lt;/STRONG&gt; property, that custom button will now show in place of the done button on the top left. And when you tap it, the action you defined for that buttonItem will be called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But by doing this, you won't have any button to hide the popups container view controller. For that I suggested that you should have two buttons on the left; one for &lt;STRONG&gt;relatedRecords&lt;/STRONG&gt; and the other for &lt;STRONG&gt;Done&lt;/STRONG&gt;. And to achieve that you will have to create a &lt;STRONG&gt;UIView&lt;/STRONG&gt; and add two &lt;STRONG&gt;UIButtons&lt;/STRONG&gt; to it. Then you will have to create a UIBarButtonItem using the following initializer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="code-voice" style="font-size: 0.85em; color: #808080; font-family: Menlo, monospace;"&gt;&lt;CODE class="code-voice" style="font-size: 0.85em; color: #808080; font-family: Menlo, monospace;"&gt;&lt;A name="//apple_ref/doc/uid/TP40007519-CH3-SW11" style="font-size: 12px; margin: -112px 0 0; padding: 112px 0 0; color: #0088cc;"&gt;&lt;/A&gt;&lt;A name="//apple_ref/swift/instctr/UIBarButtonItem/c:objc(cs)UIBarButtonItem(im)initWithCustomView:" style="font-size: 12px; margin: -112px 0 0; padding: 112px 0 0; color: #0088cc;"&gt;&lt;/A&gt;&lt;A class="instance-method Objective-C x-api-property-task-list" href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIBarButtonItem_Class/index.html#//apple_ref/occ/instm/UIBarButtonItem/initWithCustomView:" style="font-size: 12px; color: #0088cc;" title="Initializes a new item using the specified custom view."&gt;- initWithCustomView:&lt;/A&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and assign it to the &lt;STRONG&gt;doneButton&lt;/STRONG&gt; property on &lt;STRONG&gt;AGSPopupsContainerViewController.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 15:01:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller-adding-a-new/m-p/513805#M4396</guid>
      <dc:creator>GagandeepSingh</dc:creator>
      <dc:date>2016-04-25T15:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: AGSPopupsContainerViewController adding a new features</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller-adding-a-new/m-p/513806#M4397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are the best Singh, I have been trying this more than a week, Finally its done,&lt;/P&gt;&lt;P&gt;I also tried an almost same approach and didnt work, here is code :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;var&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; rightAddBarButtonItem:&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;UIBarButtonItem&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;UIBarButtonItem&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(title: &lt;/SPAN&gt;&lt;SPAN class="s4"&gt;"Add"&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;, style: &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;UIBarButtonItemStyle&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.Plain, target: &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;self&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;, action: &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;#selector&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;ViewController&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.addTapped))&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;var&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; rightSearchBarButtonItem:&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;UIBarButtonItem&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;UIBarButtonItem&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(barButtonSystemItem: &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;UIBarButtonSystemItem&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.Search, target: &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;self&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;, action: &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;#selector&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;ViewController&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.searchTapped))&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;self&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;popupsVC&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.doneButton = &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;self&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;navigationItem&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s7"&gt;setRightBarButtonItems&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;([rightAddBarButtonItem,rightSearchBarButtonItem], animated: &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;true&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But thank you for sorting this out, You saved my day !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 07:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agspopupscontainerviewcontroller-adding-a-new/m-p/513806#M4397</guid>
      <dc:creator>ozcandurak</dc:creator>
      <dc:date>2016-04-26T07:13:05Z</dc:date>
    </item>
  </channel>
</rss>

