Adds switch to demo view to reflect the new functionality around disabling animations.
Showing
3 changed files
with
72 additions
and
26 deletions
| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | -<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="9Rt-UT-IxH"> | 2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9531" systemVersion="15C50" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="9Rt-UT-IxH"> |
| 3 | <dependencies> | 3 | <dependencies> |
| 4 | <deployment identifier="iOS"/> | 4 | <deployment identifier="iOS"/> |
| 5 | - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> | 5 | + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9529"/> |
| 6 | <capability name="Constraints to layout margins" minToolsVersion="6.0"/> | 6 | <capability name="Constraints to layout margins" minToolsVersion="6.0"/> |
| 7 | </dependencies> | 7 | </dependencies> |
| 8 | <scenes> | 8 | <scenes> |
| @@ -33,66 +33,87 @@ | @@ -33,66 +33,87 @@ | ||
| 33 | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> | 33 | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> |
| 34 | <nil key="highlightedColor"/> | 34 | <nil key="highlightedColor"/> |
| 35 | </label> | 35 | </label> |
| 36 | - <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qR7-40-7ir"> | ||
| 37 | - <rect key="frame" x="261" y="502" width="51" height="31"/> | ||
| 38 | - <connections> | ||
| 39 | - <action selector="rightSwitchChanged:" destination="Tha-Wr-sPW" eventType="valueChanged" id="n6V-lL-r8Q"/> | ||
| 40 | - </connections> | ||
| 41 | - </switch> | ||
| 42 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Percentage" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="IKu-qh-ksi"> | 36 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Percentage" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="IKu-qh-ksi"> |
| 43 | - <rect key="frame" x="16" y="541" width="88" height="21"/> | 37 | + <rect key="frame" x="16" y="539" width="88" height="21"/> |
| 44 | <fontDescription key="fontDescription" type="system" pointSize="17"/> | 38 | <fontDescription key="fontDescription" type="system" pointSize="17"/> |
| 45 | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> | 39 | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> |
| 46 | <nil key="highlightedColor"/> | 40 | <nil key="highlightedColor"/> |
| 47 | </label> | 41 | </label> |
| 48 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Show Labels" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ifm-a9-Wkq"> | 42 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Show Labels" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ifm-a9-Wkq"> |
| 49 | - <rect key="frame" x="211" y="540" width="99" height="21"/> | 43 | + <rect key="frame" x="205" y="538" width="99" height="21"/> |
| 44 | + <constraints> | ||
| 45 | + <constraint firstAttribute="width" constant="99" id="KZW-Ru-GZO"/> | ||
| 46 | + </constraints> | ||
| 50 | <fontDescription key="fontDescription" type="system" pointSize="17"/> | 47 | <fontDescription key="fontDescription" type="system" pointSize="17"/> |
| 51 | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> | 48 | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> |
| 52 | <nil key="highlightedColor"/> | 49 | <nil key="highlightedColor"/> |
| 53 | </label> | 50 | </label> |
| 54 | <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="kav-3r-blI"> | 51 | <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="kav-3r-blI"> |
| 55 | - <rect key="frame" x="136" y="461" width="51" height="31"/> | 52 | + <rect key="frame" x="16" y="434" width="51" height="31"/> |
| 56 | <connections> | 53 | <connections> |
| 57 | <action selector="centerSwitchChanged:" destination="Tha-Wr-sPW" eventType="valueChanged" id="ETI-hb-d8F"/> | 54 | <action selector="centerSwitchChanged:" destination="Tha-Wr-sPW" eventType="valueChanged" id="ETI-hb-d8F"/> |
| 58 | <action selector="rightSwitchChanged:" destination="Tha-Wr-sPW" eventType="valueChanged" id="2Rs-PH-2WM"/> | 55 | <action selector="rightSwitchChanged:" destination="Tha-Wr-sPW" eventType="valueChanged" id="2Rs-PH-2WM"/> |
| 59 | </connections> | 56 | </connections> |
| 60 | </switch> | 57 | </switch> |
| 61 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Multiple Selection" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sMF-o9-dZX"> | 58 | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Multiple Selection" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sMF-o9-dZX"> |
| 62 | - <rect key="frame" x="92" y="498" width="137" height="21"/> | 59 | + <rect key="frame" x="16" y="471" width="137" height="21"/> |
| 63 | <fontDescription key="fontDescription" type="system" pointSize="17"/> | 60 | <fontDescription key="fontDescription" type="system" pointSize="17"/> |
| 64 | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> | 61 | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> |
| 65 | <nil key="highlightedColor"/> | 62 | <nil key="highlightedColor"/> |
| 66 | </label> | 63 | </label> |
| 67 | <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ORA-mb-hJl"> | 64 | <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ORA-mb-hJl"> |
| 68 | - <rect key="frame" x="16" y="502" width="51" height="31"/> | 65 | + <rect key="frame" x="16" y="500" width="51" height="31"/> |
| 69 | <connections> | 66 | <connections> |
| 70 | <action selector="leftSwitchChanged:" destination="Tha-Wr-sPW" eventType="valueChanged" id="q9T-QK-Sas"/> | 67 | <action selector="leftSwitchChanged:" destination="Tha-Wr-sPW" eventType="valueChanged" id="q9T-QK-Sas"/> |
| 71 | </connections> | 68 | </connections> |
| 72 | </switch> | 69 | </switch> |
| 70 | + <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Mnm-Is-oih" userLabel="Animations Switch"> | ||
| 71 | + <rect key="frame" x="255" y="434" width="51" height="31"/> | ||
| 72 | + <connections> | ||
| 73 | + <action selector="animationsSwitchChanged:" destination="Tha-Wr-sPW" eventType="valueChanged" id="lC4-5M-rlC"/> | ||
| 74 | + </connections> | ||
| 75 | + </switch> | ||
| 76 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Animations" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lc1-oP-FNw"> | ||
| 77 | + <rect key="frame" x="218" y="471" width="86" height="21"/> | ||
| 78 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
| 79 | + <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> | ||
| 80 | + <nil key="highlightedColor"/> | ||
| 81 | + </label> | ||
| 82 | + <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qR7-40-7ir"> | ||
| 83 | + <rect key="frame" x="255" y="500" width="51" height="31"/> | ||
| 84 | + <connections> | ||
| 85 | + <action selector="rightSwitchChanged:" destination="Tha-Wr-sPW" eventType="valueChanged" id="n6V-lL-r8Q"/> | ||
| 86 | + </connections> | ||
| 87 | + </switch> | ||
| 73 | </subviews> | 88 | </subviews> |
| 74 | <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> | 89 | <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> |
| 75 | <constraints> | 90 | <constraints> |
| 76 | - <constraint firstItem="qR7-40-7ir" firstAttribute="top" secondItem="kav-3r-blI" secondAttribute="bottom" constant="10" id="4Qo-Xx-bbF"/> | 91 | + <constraint firstItem="Mnm-Is-oih" firstAttribute="centerY" secondItem="kav-3r-blI" secondAttribute="centerY" id="0NI-PI-ATH"/> |
| 77 | <constraint firstItem="ORA-mb-hJl" firstAttribute="centerY" secondItem="qR7-40-7ir" secondAttribute="centerY" id="7c9-My-TTD"/> | 92 | <constraint firstItem="ORA-mb-hJl" firstAttribute="centerY" secondItem="qR7-40-7ir" secondAttribute="centerY" id="7c9-My-TTD"/> |
| 78 | <constraint firstItem="IKu-qh-ksi" firstAttribute="top" secondItem="ORA-mb-hJl" secondAttribute="bottom" constant="8" id="7vb-uB-f1x"/> | 93 | <constraint firstItem="IKu-qh-ksi" firstAttribute="top" secondItem="ORA-mb-hJl" secondAttribute="bottom" constant="8" id="7vb-uB-f1x"/> |
| 79 | <constraint firstItem="Ifm-a9-Wkq" firstAttribute="top" secondItem="qR7-40-7ir" secondAttribute="bottom" constant="7" id="9ET-Wq-Yen"/> | 94 | <constraint firstItem="Ifm-a9-Wkq" firstAttribute="top" secondItem="qR7-40-7ir" secondAttribute="bottom" constant="7" id="9ET-Wq-Yen"/> |
| 95 | + <constraint firstItem="qR7-40-7ir" firstAttribute="top" secondItem="lc1-oP-FNw" secondAttribute="bottom" constant="8" id="A54-NU-I6K"/> | ||
| 80 | <constraint firstItem="FUU-vZ-jMd" firstAttribute="top" secondItem="znr-YO-4a4" secondAttribute="bottom" constant="17" id="DLv-qJ-h7R"/> | 96 | <constraint firstItem="FUU-vZ-jMd" firstAttribute="top" secondItem="znr-YO-4a4" secondAttribute="bottom" constant="17" id="DLv-qJ-h7R"/> |
| 81 | <constraint firstItem="sMF-o9-dZX" firstAttribute="top" secondItem="kav-3r-blI" secondAttribute="bottom" constant="6" id="Fy1-r9-rOd"/> | 97 | <constraint firstItem="sMF-o9-dZX" firstAttribute="top" secondItem="kav-3r-blI" secondAttribute="bottom" constant="6" id="Fy1-r9-rOd"/> |
| 82 | - <constraint firstAttribute="trailingMargin" secondItem="qR7-40-7ir" secondAttribute="trailing" constant="-6" id="UdE-fM-LAZ"/> | 98 | + <constraint firstItem="Ifm-a9-Wkq" firstAttribute="trailing" secondItem="qR7-40-7ir" secondAttribute="trailing" id="Im7-AC-dup"/> |
| 99 | + <constraint firstItem="ORA-mb-hJl" firstAttribute="top" secondItem="sMF-o9-dZX" secondAttribute="bottom" constant="8" symbolic="YES" id="K0Z-Kz-m2p"/> | ||
| 100 | + <constraint firstAttribute="trailingMargin" secondItem="qR7-40-7ir" secondAttribute="trailing" id="KZ9-eM-6oW"/> | ||
| 101 | + <constraint firstItem="kav-3r-blI" firstAttribute="leading" secondItem="PPb-b8-nBo" secondAttribute="leadingMargin" id="KrJ-mU-I6l"/> | ||
| 83 | <constraint firstAttribute="centerX" secondItem="FUU-vZ-jMd" secondAttribute="centerX" id="YGT-a5-Zka"/> | 102 | <constraint firstAttribute="centerX" secondItem="FUU-vZ-jMd" secondAttribute="centerX" id="YGT-a5-Zka"/> |
| 84 | - <constraint firstItem="kav-3r-blI" firstAttribute="centerX" secondItem="sMF-o9-dZX" secondAttribute="centerX" id="aUL-sS-9ZE"/> | 103 | + <constraint firstItem="lc1-oP-FNw" firstAttribute="trailing" secondItem="Mnm-Is-oih" secondAttribute="trailing" id="YrP-Jx-D1J"/> |
| 85 | - <constraint firstAttribute="centerX" secondItem="kav-3r-blI" secondAttribute="centerX" id="aap-Gv-rtz"/> | 104 | + <constraint firstItem="lc1-oP-FNw" firstAttribute="top" secondItem="Mnm-Is-oih" secondAttribute="bottom" constant="6" id="Zsm-LK-7NY"/> |
| 86 | - <constraint firstAttribute="trailingMargin" secondItem="Ifm-a9-Wkq" secondAttribute="trailing" constant="-6" id="byo-2X-TrB"/> | 105 | + <constraint firstAttribute="trailingMargin" secondItem="Mnm-Is-oih" secondAttribute="trailing" id="bnI-nC-1qS"/> |
| 87 | - <constraint firstItem="kav-3r-blI" firstAttribute="top" secondItem="L3F-13-Wf5" secondAttribute="bottom" constant="67" id="eO9-bU-rZY"/> | 106 | + <constraint firstItem="kav-3r-blI" firstAttribute="top" secondItem="L3F-13-Wf5" secondAttribute="bottom" constant="40" id="eO9-bU-rZY"/> |
| 88 | <constraint firstItem="L3F-13-Wf5" firstAttribute="top" secondItem="znr-YO-4a4" secondAttribute="bottom" constant="300" id="ewm-kv-p8k"/> | 107 | <constraint firstItem="L3F-13-Wf5" firstAttribute="top" secondItem="znr-YO-4a4" secondAttribute="bottom" constant="300" id="ewm-kv-p8k"/> |
| 89 | <constraint firstItem="IKu-qh-ksi" firstAttribute="leading" secondItem="PPb-b8-nBo" secondAttribute="leadingMargin" id="m9a-Ug-SfK"/> | 108 | <constraint firstItem="IKu-qh-ksi" firstAttribute="leading" secondItem="PPb-b8-nBo" secondAttribute="leadingMargin" id="m9a-Ug-SfK"/> |
| 90 | <constraint firstItem="ORA-mb-hJl" firstAttribute="leading" secondItem="PPb-b8-nBo" secondAttribute="leadingMargin" id="oZO-il-Fd5"/> | 109 | <constraint firstItem="ORA-mb-hJl" firstAttribute="leading" secondItem="PPb-b8-nBo" secondAttribute="leadingMargin" id="oZO-il-Fd5"/> |
| 110 | + <constraint firstItem="sMF-o9-dZX" firstAttribute="leading" secondItem="kav-3r-blI" secondAttribute="leading" id="qtt-KE-YfT"/> | ||
| 91 | <constraint firstAttribute="centerX" secondItem="L3F-13-Wf5" secondAttribute="centerX" id="zXw-WV-mro"/> | 111 | <constraint firstAttribute="centerX" secondItem="L3F-13-Wf5" secondAttribute="centerX" id="zXw-WV-mro"/> |
| 92 | </constraints> | 112 | </constraints> |
| 93 | </view> | 113 | </view> |
| 94 | <navigationItem key="navigationItem" title="PNChart" id="Ukg-Sg-E2z"/> | 114 | <navigationItem key="navigationItem" title="PNChart" id="Ukg-Sg-E2z"/> |
| 95 | <connections> | 115 | <connections> |
| 116 | + <outlet property="animationsSwitch" destination="Mnm-Is-oih" id="haB-27-exI"/> | ||
| 96 | <outlet property="centerSwitch" destination="kav-3r-blI" id="aDA-mR-FhR"/> | 117 | <outlet property="centerSwitch" destination="kav-3r-blI" id="aDA-mR-FhR"/> |
| 97 | <outlet property="changeValueButton" destination="L3F-13-Wf5" id="JnI-y3-Xpj"/> | 118 | <outlet property="changeValueButton" destination="L3F-13-Wf5" id="JnI-y3-Xpj"/> |
| 98 | <outlet property="leftLabel" destination="IKu-qh-ksi" id="CPy-oy-qCP"/> | 119 | <outlet property="leftLabel" destination="IKu-qh-ksi" id="CPy-oy-qCP"/> |
| @@ -198,12 +219,14 @@ | @@ -198,12 +219,14 @@ | ||
| 198 | </connections> | 219 | </connections> |
| 199 | </tableViewCell> | 220 | </tableViewCell> |
| 200 | <tableViewCell contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" indentationLevel="1" indentationWidth="0.0" textLabel="YOU-SK-mQU" style="IBUITableViewCellStyleDefault" id="JJR-oU-C7n"> | 221 | <tableViewCell contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" indentationLevel="1" indentationWidth="0.0" textLabel="YOU-SK-mQU" style="IBUITableViewCellStyleDefault" id="JJR-oU-C7n"> |
| 201 | - <rect key="frame" x="0.0" y="0.0" width="320" height="44"/> | 222 | + <rect key="frame" x="0.0" y="240" width="320" height="44"/> |
| 202 | <autoresizingMask key="autoresizingMask"/> | 223 | <autoresizingMask key="autoresizingMask"/> |
| 203 | <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="JJR-oU-C7n" id="iJk-3W-tcy"> | 224 | <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="JJR-oU-C7n" id="iJk-3W-tcy"> |
| 225 | + <rect key="frame" x="0.0" y="0.0" width="287" height="43"/> | ||
| 204 | <autoresizingMask key="autoresizingMask"/> | 226 | <autoresizingMask key="autoresizingMask"/> |
| 205 | <subviews> | 227 | <subviews> |
| 206 | <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="ScatterChart" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="YOU-SK-mQU"> | 228 | <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="ScatterChart" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="YOU-SK-mQU"> |
| 229 | + <rect key="frame" x="15" y="0.0" width="270" height="43"/> | ||
| 207 | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | 230 | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> |
| 208 | <fontDescription key="fontDescription" type="system" pointSize="18"/> | 231 | <fontDescription key="fontDescription" type="system" pointSize="18"/> |
| 209 | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> | 232 | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> |
| @@ -216,7 +239,7 @@ | @@ -216,7 +239,7 @@ | ||
| 216 | </connections> | 239 | </connections> |
| 217 | </tableViewCell> | 240 | </tableViewCell> |
| 218 | <tableViewCell contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" textLabel="Sjk-AS-XhW" style="IBUITableViewCellStyleDefault" id="bev-fA-J4Q"> | 241 | <tableViewCell contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" textLabel="Sjk-AS-XhW" style="IBUITableViewCellStyleDefault" id="bev-fA-J4Q"> |
| 219 | - <rect key="frame" x="0.0" y="196" width="320" height="44"/> | 242 | + <rect key="frame" x="0.0" y="284" width="320" height="44"/> |
| 220 | <autoresizingMask key="autoresizingMask"/> | 243 | <autoresizingMask key="autoresizingMask"/> |
| 221 | <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="bev-fA-J4Q" id="nSV-Wu-TAu"> | 244 | <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="bev-fA-J4Q" id="nSV-Wu-TAu"> |
| 222 | <rect key="frame" x="0.0" y="0.0" width="287" height="43"/> | 245 | <rect key="frame" x="0.0" y="0.0" width="287" height="43"/> |
| @@ -261,11 +284,6 @@ | @@ -261,11 +284,6 @@ | ||
| 261 | <point key="canvasLocation" x="-318" y="31"/> | 284 | <point key="canvasLocation" x="-318" y="31"/> |
| 262 | </scene> | 285 | </scene> |
| 263 | </scenes> | 286 | </scenes> |
| 264 | - <simulatedMetricsContainer key="defaultSimulatedMetrics"> | ||
| 265 | - <simulatedStatusBarMetrics key="statusBar"/> | ||
| 266 | - <simulatedOrientationMetrics key="orientation"/> | ||
| 267 | - <simulatedScreenMetrics key="destination" type="retina4"/> | ||
| 268 | - </simulatedMetricsContainer> | ||
| 269 | <inferredMetricsTieBreakers> | 287 | <inferredMetricsTieBreakers> |
| 270 | <segue reference="pvQ-oy-a9a"/> | 288 | <segue reference="pvQ-oy-a9a"/> |
| 271 | </inferredMetricsTieBreakers> | 289 | </inferredMetricsTieBreakers> |
| @@ -24,6 +24,7 @@ | @@ -24,6 +24,7 @@ | ||
| 24 | - (IBAction)changeValue:(id)sender; | 24 | - (IBAction)changeValue:(id)sender; |
| 25 | @property (weak, nonatomic) IBOutlet UIButton *changeValueButton; | 25 | @property (weak, nonatomic) IBOutlet UIButton *changeValueButton; |
| 26 | 26 | ||
| 27 | +@property (weak, nonatomic) IBOutlet UISwitch *animationsSwitch; | ||
| 27 | @property (weak, nonatomic) IBOutlet UISwitch *leftSwitch; | 28 | @property (weak, nonatomic) IBOutlet UISwitch *leftSwitch; |
| 28 | @property (weak, nonatomic) IBOutlet UISwitch *centerSwitch; | 29 | @property (weak, nonatomic) IBOutlet UISwitch *centerSwitch; |
| 29 | @property (weak, nonatomic) IBOutlet UISwitch *rightSwitch; | 30 | @property (weak, nonatomic) IBOutlet UISwitch *rightSwitch; |
| @@ -183,6 +183,8 @@ | @@ -183,6 +183,8 @@ | ||
| 183 | } | 183 | } |
| 184 | else if ([self.title isEqualToString:@"Scatter Chart"]) | 184 | else if ([self.title isEqualToString:@"Scatter Chart"]) |
| 185 | { | 185 | { |
| 186 | + self.animationsSwitch.hidden = YES; | ||
| 187 | + | ||
| 186 | self.titleLabel.text = @"Scatter Chart"; | 188 | self.titleLabel.text = @"Scatter Chart"; |
| 187 | 189 | ||
| 188 | self.scatterChart = [[PNScatterChart alloc] initWithFrame:CGRectMake(SCREEN_WIDTH /6.0 - 30, 135, 280, 200)]; | 190 | self.scatterChart = [[PNScatterChart alloc] initWithFrame:CGRectMake(SCREEN_WIDTH /6.0 - 30, 135, 280, 200)]; |
| @@ -387,4 +389,29 @@ | @@ -387,4 +389,29 @@ | ||
| 387 | [self.radarChart strokeChart]; | 389 | [self.radarChart strokeChart]; |
| 388 | } | 390 | } |
| 389 | } | 391 | } |
| 392 | + | ||
| 393 | +- (IBAction)animationsSwitchChanged:(UISwitch *)sender | ||
| 394 | +{ | ||
| 395 | + if ([self.title isEqualToString:@"Circle Chart"]) { | ||
| 396 | + self.circleChart.displayAnimated = sender.on; | ||
| 397 | + [self.circleChart strokeChart]; | ||
| 398 | + } | ||
| 399 | + else if ([self.title isEqualToString:@"Line Chart"]) { | ||
| 400 | + self.lineChart.displayAnimated = sender.on; | ||
| 401 | + [self.lineChart strokeChart]; | ||
| 402 | + } | ||
| 403 | + else if ([self.title isEqualToString:@"Bar Chart"]) { | ||
| 404 | + self.barChart.displayAnimated = sender.on; | ||
| 405 | + [self.barChart strokeChart]; | ||
| 406 | + } | ||
| 407 | + else if ([self.title isEqualToString:@"Pie Chart"]) { | ||
| 408 | + self.pieChart.displayAnimated = sender.on; | ||
| 409 | + [self.pieChart strokeChart]; | ||
| 410 | + } | ||
| 411 | + else if ([self.title isEqualToString:@"Radar Chart"]) { | ||
| 412 | + self.radarChart.displayAnimated = sender.on; | ||
| 413 | + [self.radarChart strokeChart]; | ||
| 414 | + } | ||
| 415 | +} | ||
| 416 | + | ||
| 390 | @end | 417 | @end |
-
Please register or login to post a comment