Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 0953010

Browse files
authored
Merge pull request #327 from Esri/v.next
100.2 samples
2 parents 27b32da + 700257e commit 0953010

79 files changed

Lines changed: 4332 additions & 956 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ DerivedData/
1717
!default.perspectivev3
1818
xcuserdata/
1919

20+
## Ignore Mac DS_Store files
21+
.DS_Store
22+
2023
## Other
2124
*.moved-aside
2225
*.xccheckout

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ The ```master``` branch of this repository contains samples configured for the l
2020
* Scenes - Display scenes, 3D symbols, and scene layers
2121

2222
## Requirements
23-
* [ArcGIS Runtime SDK for iOS](https://developers.arcgis.com/en/ios/) (Requires ArcGIS for Developers account; free to sign up)
24-
* XCode 8 (or higher)
25-
* iOS 10 SDK (or higher)
23+
* [ArcGIS Runtime SDK for iOS](https://developers.arcgis.com/en/ios/) 100.2 (or higher).
24+
* XCode 9 (or higher)
25+
* iOS 11 SDK (or higher)
2626

2727
1. Fork and then clone the repo. Don't know how? [Get started here.](http://htmlpreview.github.com/?https://github.com/Esri/esri.github.com/blob/master/help/esri-getting-to-know-github.html)
2828
2. Build and run the project to create a single app containing all of the samples.

arcgis-ios-sdk-samples.xcodeproj/project.pbxproj

Lines changed: 336 additions & 12 deletions
Large diffs are not rendered by default.

arcgis-ios-sdk-samples.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arcgis-ios-sdk-samples.xcodeproj/xcshareddata/xcschemes/arcgis-ios-sdk-samples.xcscheme

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0800"
3+
LastUpgradeVersion = "0910"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,6 +26,7 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<Testables>
3132
</Testables>
@@ -45,6 +46,7 @@
4546
buildConfiguration = "Debug"
4647
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4748
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
49+
language = ""
4850
launchStyle = "0"
4951
useCustomWorkingDirectory = "NO"
5052
ignoresPersistentStateOnLaunch = "NO"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Statistical query
2+
3+
This sample demonstrates how to query a feature table to get aggregated statistics back for a specific field.
4+
5+
## How to use the sample
6+
7+
Select the appropriate switch to filter features by attributes and/or within the current extent. Click the button to see basic statistics displayed for world cities.
8+
9+
![](image1.png)
10+
11+
## How it works
12+
13+
An `AGSServiceFeatureTable` is created with a URL to the REST endpoint of a feature service. `AGSStatisticsQueryParameters` are created, and several `AGSStatisticDefinition` objects are created and added to the parameters. These definitions defines the various statistics that we would like to compute, such as average, minimum and maximum of a given field. When the button is clicked, `queryStatistics` is executed on the `AGSServiceFeatureTable`. Depending on the state of two switches, additional paramters are set. This process runs asynchronously, and once completed, returns `AGSStatisticsQueryResult`, which contains key/value pairs as the result.
14+
15+
16+
17+
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="DKT-K8-rR8">
3+
<device id="retina4_0" orientation="portrait">
4+
<adaptation id="fullscreen"/>
5+
</device>
6+
<dependencies>
7+
<deployment identifier="iOS"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13174"/>
9+
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
10+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
11+
</dependencies>
12+
<scenes>
13+
<!--Statistical Query View Controller-->
14+
<scene sceneID="9fZ-Qr-hgc">
15+
<objects>
16+
<viewController id="DKT-K8-rR8" customClass="StatisticalQueryViewController" customModule="arcgis_ios_sdk_samples" customModuleProvider="target" sceneMemberID="viewController">
17+
<layoutGuides>
18+
<viewControllerLayoutGuide type="top" id="KkP-vz-Bdt"/>
19+
<viewControllerLayoutGuide type="bottom" id="1sz-tn-ujd"/>
20+
</layoutGuides>
21+
<view key="view" contentMode="scaleToFill" id="E66-ip-T79">
22+
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
23+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
24+
<subviews>
25+
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="MMu-eo-dCE" customClass="AGSMapView">
26+
<rect key="frame" x="0.0" y="20" width="320" height="548"/>
27+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
28+
</view>
29+
<visualEffectView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zsC-4Y-Zj7">
30+
<rect key="frame" x="10" y="432" width="300" height="136"/>
31+
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="6k4-pi-srd">
32+
<rect key="frame" x="0.0" y="0.0" width="300" height="136"/>
33+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
34+
<subviews>
35+
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Only cities in current extent" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZwN-CW-cHD">
36+
<rect key="frame" x="15" y="20" width="221" height="21"/>
37+
<constraints>
38+
<constraint firstAttribute="width" constant="221" id="YPi-Nv-Mki"/>
39+
</constraints>
40+
<fontDescription key="fontDescription" type="system" pointSize="17"/>
41+
<nil key="textColor"/>
42+
<nil key="highlightedColor"/>
43+
</label>
44+
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Vbu-gq-lFX">
45+
<rect key="frame" x="237" y="15" width="51" height="31"/>
46+
<color key="onTintColor" red="0.0" green="0.44331008195877075" blue="0.64703482389450073" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
47+
</switch>
48+
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Only cities greater than 5M" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Kge-gG-dGK">
49+
<rect key="frame" x="15" y="58" width="221" height="21"/>
50+
<constraints>
51+
<constraint firstAttribute="width" constant="221" id="lXh-cX-yOh"/>
52+
</constraints>
53+
<fontDescription key="fontDescription" type="system" pointSize="17"/>
54+
<nil key="textColor"/>
55+
<nil key="highlightedColor"/>
56+
</label>
57+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DuN-wd-ao7">
58+
<rect key="frame" x="87" y="92" width="120" height="30"/>
59+
<color key="backgroundColor" red="0.0" green="0.44331008199999999" blue="0.6470348239" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
60+
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
61+
<state key="normal" title="Get Statistics">
62+
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
63+
</state>
64+
<connections>
65+
<action selector="getStatisticsAction:" destination="DKT-K8-rR8" eventType="touchUpInside" id="EWY-Dg-U5T"/>
66+
</connections>
67+
</button>
68+
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="TA9-eB-bGy">
69+
<rect key="frame" x="237" y="53" width="51" height="31"/>
70+
<color key="onTintColor" red="0.0" green="0.36862745099999999" blue="0.58431372550000005" alpha="1" colorSpace="calibratedRGB"/>
71+
</switch>
72+
</subviews>
73+
<constraints>
74+
<constraint firstItem="Vbu-gq-lFX" firstAttribute="trailing" secondItem="6k4-pi-srd" secondAttribute="trailingMargin" constant="-6" id="3Pe-l0-ELs"/>
75+
<constraint firstItem="ZwN-CW-cHD" firstAttribute="centerY" secondItem="Vbu-gq-lFX" secondAttribute="centerY" id="6T7-8z-1dz"/>
76+
<constraint firstItem="Vbu-gq-lFX" firstAttribute="leading" secondItem="TA9-eB-bGy" secondAttribute="leading" id="93A-rd-nfG"/>
77+
<constraint firstItem="Kge-gG-dGK" firstAttribute="centerY" secondItem="TA9-eB-bGy" secondAttribute="centerY" id="HwB-Gx-mDn"/>
78+
<constraint firstItem="TA9-eB-bGy" firstAttribute="top" secondItem="Vbu-gq-lFX" secondAttribute="bottom" constant="7" id="N7h-kk-LL3"/>
79+
<constraint firstItem="DuN-wd-ao7" firstAttribute="leading" secondItem="6k4-pi-srd" secondAttribute="leading" constant="87" id="NEi-CL-b2k"/>
80+
<constraint firstItem="DuN-wd-ao7" firstAttribute="top" secondItem="Kge-gG-dGK" secondAttribute="bottom" constant="13" id="NlG-Qp-tGR"/>
81+
<constraint firstItem="ZwN-CW-cHD" firstAttribute="top" secondItem="6k4-pi-srd" secondAttribute="topMargin" constant="12" id="YgM-0h-Tll"/>
82+
<constraint firstItem="DuN-wd-ao7" firstAttribute="centerX" secondItem="6k4-pi-srd" secondAttribute="centerX" constant="-3" id="akX-qU-KRq"/>
83+
<constraint firstItem="ZwN-CW-cHD" firstAttribute="leading" secondItem="6k4-pi-srd" secondAttribute="leadingMargin" constant="7" id="g4C-fV-f7R"/>
84+
<constraint firstItem="ZwN-CW-cHD" firstAttribute="leading" secondItem="Kge-gG-dGK" secondAttribute="leading" id="zE1-ou-5Sb"/>
85+
</constraints>
86+
</view>
87+
<constraints>
88+
<constraint firstAttribute="width" constant="300" id="AjM-qf-Msq"/>
89+
<constraint firstAttribute="height" constant="136" id="OfJ-Jx-pgW"/>
90+
</constraints>
91+
<blurEffect style="extraLight"/>
92+
</visualEffectView>
93+
</subviews>
94+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
95+
<constraints>
96+
<constraint firstItem="MMu-eo-dCE" firstAttribute="top" secondItem="KkP-vz-Bdt" secondAttribute="bottom" id="6cI-Km-Fvp"/>
97+
<constraint firstItem="MMu-eo-dCE" firstAttribute="leading" secondItem="E66-ip-T79" secondAttribute="leading" id="7ur-Kc-sZw"/>
98+
<constraint firstItem="1sz-tn-ujd" firstAttribute="top" secondItem="MMu-eo-dCE" secondAttribute="bottom" id="AR4-hZ-Tjw"/>
99+
<constraint firstItem="1sz-tn-ujd" firstAttribute="top" secondItem="zsC-4Y-Zj7" secondAttribute="bottom" priority="1" id="EAT-eL-uVX"/>
100+
<constraint firstAttribute="centerX" secondItem="zsC-4Y-Zj7" secondAttribute="centerX" id="P61-BD-TG1"/>
101+
<constraint firstItem="MMu-eo-dCE" firstAttribute="top" secondItem="E66-ip-T79" secondAttribute="top" id="QER-5R-vLJ"/>
102+
<constraint firstAttribute="trailing" secondItem="MMu-eo-dCE" secondAttribute="trailing" id="hov-df-ope"/>
103+
</constraints>
104+
<variation key="default">
105+
<mask key="constraints">
106+
<exclude reference="QER-5R-vLJ"/>
107+
</mask>
108+
</variation>
109+
</view>
110+
<connections>
111+
<outlet property="getStatisticsButton" destination="DuN-wd-ao7" id="HnI-pO-ebv"/>
112+
<outlet property="mapView" destination="MMu-eo-dCE" id="mFj-mZ-uMd"/>
113+
<outlet property="onlyBigCitiesSwitch" destination="TA9-eB-bGy" id="Gnf-Vy-fZH"/>
114+
<outlet property="onlyInCurrentExtentSwitch" destination="Vbu-gq-lFX" id="EOv-jx-4Lm"/>
115+
<outlet property="visualEffectView" destination="zsC-4Y-Zj7" id="b8q-ZC-v9e"/>
116+
</connections>
117+
</viewController>
118+
<placeholder placeholderIdentifier="IBFirstResponder" id="a9m-Nj-4sr" userLabel="First Responder" sceneMemberID="firstResponder"/>
119+
</objects>
120+
<point key="canvasLocation" x="558.75" y="448.94366197183098"/>
121+
</scene>
122+
</scenes>
123+
</document>

0 commit comments

Comments
 (0)