add iPhone version, fix autlolayout

This commit is contained in:
backmeupplz
2013-12-06 04:48:11 -08:00
parent ac60f4681e
commit feb6b962f2
6 changed files with 550 additions and 169 deletions

View File

@@ -2,6 +2,8 @@
#define userDefaults [NSUserDefaults standardUserDefaults]
#define IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
// User Defaults constants
#define wasLaunchedBefore @"wasLaunchedBefore"

View File

@@ -38,12 +38,18 @@
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zYg-0v-Q2N">
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zYg-0v-Q2N">
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" allowsSelection="NO" rowHeight="80" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="YiX-Fs-zFx">
<rect key="frame" x="0.0" y="20" width="768" height="936"/>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="bear.jpg" translatesAutoresizingMaskIntoConstraints="NO" id="WGX-oF-9Tf">
<rect key="frame" x="0.0" y="1024" width="260" height="330"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
</imageView>
</subviews>
</scrollView>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" allowsSelection="NO" rowHeight="80" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="YiX-Fs-zFx">
<rect key="frame" x="0.0" y="20" width="768" height="960"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="sectionIndexTrackingBackgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
@@ -107,14 +113,18 @@
<outlet property="delegate" destination="zT7-eL-2B4" id="7QO-Wp-CpR"/>
</connections>
</tableView>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="bear.jpg" translatesAutoresizingMaskIntoConstraints="NO" id="pI5-4A-VwK">
<rect key="frame" x="0.0" y="1024" width="265" height="340"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
</subviews>
</scrollView>
</subviews>
<color key="backgroundColor" red="1" green="0.92156869173049927" blue="0.93725496530532837" alpha="1" colorSpace="deviceRGB"/>
<constraints>
<constraint firstItem="dzm-dU-PEL" firstAttribute="top" secondItem="YiX-Fs-zFx" secondAttribute="bottom" constant="44" id="7Pl-kJ-E8P"/>
<constraint firstAttribute="trailing" secondItem="YiX-Fs-zFx" secondAttribute="trailing" id="EcG-KI-Gyh"/>
<constraint firstItem="zYg-0v-Q2N" firstAttribute="top" secondItem="BaD-Ph-Zom" secondAttribute="top" id="Qo7-A4-Clh"/>
<constraint firstAttribute="trailing" secondItem="zYg-0v-Q2N" secondAttribute="trailing" id="bg8-fL-rKh"/>
<constraint firstItem="dzm-dU-PEL" firstAttribute="top" secondItem="zYg-0v-Q2N" secondAttribute="bottom" id="i19-SM-hkG"/>
<constraint firstItem="YiX-Fs-zFx" firstAttribute="leading" secondItem="BaD-Ph-Zom" secondAttribute="leading" id="mqQ-l2-3DA"/>
<constraint firstItem="YiX-Fs-zFx" firstAttribute="top" secondItem="TQP-z4-NNN" secondAttribute="bottom" id="nwv-m8-8X6"/>
<constraint firstItem="zYg-0v-Q2N" firstAttribute="leading" secondItem="BaD-Ph-Zom" secondAttribute="leading" id="zCc-SH-vM0"/>
</constraints>
</view>
<connections>
<outlet property="table" destination="YiX-Fs-zFx" id="p16-v4-9qq"/>
@@ -136,36 +146,16 @@
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="8PP-FH-30R" userLabel="Toolbar">
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8PP-FH-30R" userLabel="Toolbar">
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Po-Pomodoro" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yGx-Yi-gsY">
<rect key="frame" x="243" y="52" width="282" height="35"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="FIt-T8-0lV">
<rect key="frame" x="60" y="770" width="648" height="242"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" name="HelveticaNeue-UltraLight" family="Helvetica Neue" pointSize="46"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Introduced by Nikita Kolmogorov" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Nna-yH-AYM">
<rect key="frame" x="243" y="95" width="282" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" name="HelveticaNeue-UltraLight" family="Helvetica Neue" pointSize="18"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="E2y-iT-NiX">
<rect key="frame" x="20" y="45" width="62" height="50"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<inset key="imageEdgeInsets" minX="10" minY="10" maxX="10" maxY="10"/>
<state key="normal" image="icon_side.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="toggleLeftTouched:" destination="7BC-GU-s0Y" eventType="touchUpInside" id="PiG-tO-nLm"/>
</connections>
</button>
<subviews>
<slider opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" minValue="0.0" maxValue="100" translatesAutoresizingMaskIntoConstraints="NO" id="hKc-5D-84t" customClass="NKTimeSlider">
<rect key="frame" x="193" y="834" width="382" height="34"/>
<rect key="frame" x="133" y="65" width="382" height="34"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="minimumTrackTintColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="maximumTrackTintColor" cocoaTouchSystemColor="darkTextColor"/>
@@ -174,7 +164,7 @@
</connections>
</slider>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5Bh-tr-Cwz">
<rect key="frame" x="236" y="901" width="55" height="55"/>
<rect key="frame" x="176" y="132" width="55" height="55"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" image="icon_stop.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
@@ -184,7 +174,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="PqC-9M-EfY">
<rect key="frame" x="360" y="901" width="46" height="54"/>
<rect key="frame" x="300" y="132" width="46" height="54"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" image="icon_play.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
@@ -194,7 +184,7 @@
</connections>
</button>
<button hidden="YES" opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Php-qU-dtx">
<rect key="frame" x="362" y="900" width="42" height="55"/>
<rect key="frame" x="302" y="131" width="42" height="55"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" image="icon_pause.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
@@ -204,7 +194,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f6V-ZT-17T">
<rect key="frame" x="475" y="900" width="58" height="56"/>
<rect key="frame" x="415" y="131" width="58" height="56"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" image="icon_next.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
@@ -214,7 +204,7 @@
</connections>
</button>
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="6a5-MT-SVG" customClass="NKTimeIndicatorView">
<rect key="frame" x="643" y="872" width="55" height="56"/>
<rect key="frame" x="583" y="104" width="55" height="56"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="25" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rs5-39-cBw">
@@ -231,7 +221,7 @@
</connections>
</view>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3iF-OZ-dgn">
<rect key="frame" x="653" y="845" width="35" height="19"/>
<rect key="frame" x="593" y="77" width="35" height="19"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" image="icon_up.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
@@ -241,7 +231,7 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ghv-BC-SB5">
<rect key="frame" x="653" y="936" width="35" height="19"/>
<rect key="frame" x="593" y="168" width="35" height="19"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" image="icon_down.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
@@ -252,15 +242,76 @@
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="height" constant="242" id="PQb-N9-dzB"/>
<constraint firstAttribute="width" constant="648" id="jrt-vi-zjA"/>
</constraints>
</view>
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="hpP-U4-MqO" customClass="NKTimerCircle">
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Po-Pomodoro" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yGx-Yi-gsY">
<rect key="frame" x="243" y="52" width="282" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<constraints>
<constraint firstAttribute="width" constant="282" id="Qgj-mf-QDf"/>
<constraint firstAttribute="height" constant="35" id="bkS-Gr-9Gm"/>
</constraints>
<fontDescription key="fontDescription" name="HelveticaNeue-UltraLight" family="Helvetica Neue" pointSize="46"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Introduced by Nikita Kolmogorov" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Nna-yH-AYM">
<rect key="frame" x="243" y="95" width="282" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<constraints>
<constraint firstAttribute="width" constant="282" id="7t0-bg-700"/>
<constraint firstAttribute="height" constant="35" id="rWR-Ui-Scw"/>
</constraints>
<fontDescription key="fontDescription" name="HelveticaNeue-UltraLight" family="Helvetica Neue" pointSize="18"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="E2y-iT-NiX">
<rect key="frame" x="20" y="45" width="62" height="50"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<constraints>
<constraint firstAttribute="width" constant="62" id="nGc-aQ-1yP"/>
<constraint firstAttribute="height" constant="50" id="qGX-yG-l7H"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<inset key="imageEdgeInsets" minX="10" minY="10" maxX="10" maxY="10"/>
<state key="normal" image="icon_side.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="toggleLeftTouched:" destination="7BC-GU-s0Y" eventType="touchUpInside" id="PiG-tO-nLm"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="centerX" secondItem="FIt-T8-0lV" secondAttribute="centerX" id="30S-Rh-6XQ"/>
<constraint firstItem="E2y-iT-NiX" firstAttribute="top" secondItem="8PP-FH-30R" secondAttribute="top" constant="45" id="5QN-Tw-dor"/>
<constraint firstItem="Nna-yH-AYM" firstAttribute="top" secondItem="yGx-Yi-gsY" secondAttribute="bottom" constant="8" id="H8A-AY-doX"/>
<constraint firstAttribute="centerX" secondItem="Nna-yH-AYM" secondAttribute="centerX" id="ISF-1Z-G2c"/>
<constraint firstAttribute="centerX" secondItem="yGx-Yi-gsY" secondAttribute="centerX" id="SvP-n3-Dob"/>
<constraint firstItem="E2y-iT-NiX" firstAttribute="leading" secondItem="8PP-FH-30R" secondAttribute="leading" constant="20" id="YN0-ug-pqc"/>
<constraint firstAttribute="bottom" secondItem="FIt-T8-0lV" secondAttribute="bottom" constant="12" id="ca1-wS-2Hl"/>
<constraint firstItem="yGx-Yi-gsY" firstAttribute="top" secondItem="8PP-FH-30R" secondAttribute="top" constant="52" id="e2A-hJ-yyP"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hpP-U4-MqO" customClass="NKTimerCircle">
<rect key="frame" x="195" y="323" width="378" height="378"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="height" constant="378" id="BWR-8X-FON"/>
<constraint firstAttribute="width" constant="378" id="RM3-Oa-wn4"/>
</constraints>
</view>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="1:02:00" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8vU-uH-BI3" customClass="NKTimerLabel">
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1:02:00" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8vU-uH-BI3" customClass="NKTimerLabel">
<rect key="frame" x="243" y="485" width="282" height="53"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<constraints>
<constraint firstAttribute="height" constant="53" id="5vF-EE-KP8"/>
<constraint firstAttribute="width" constant="282" id="ZQv-CD-m5d"/>
</constraints>
<fontDescription key="fontDescription" name="HelveticaNeue-UltraLight" family="Helvetica Neue" pointSize="46"/>
<nil key="highlightedColor"/>
<connections>
@@ -270,6 +321,16 @@
</subviews>
<color key="backgroundColor" red="1" green="0.92205851015354146" blue="0.93625991787676111" alpha="1" colorSpace="calibratedRGB"/>
<gestureRecognizers/>
<constraints>
<constraint firstAttribute="centerX" secondItem="hpP-U4-MqO" secondAttribute="centerX" id="239-Ht-4wo"/>
<constraint firstItem="8PP-FH-30R" firstAttribute="top" secondItem="foK-xn-8sv" secondAttribute="top" id="7DB-Ga-pZu"/>
<constraint firstItem="8PP-FH-30R" firstAttribute="leading" secondItem="foK-xn-8sv" secondAttribute="leading" id="9oe-io-T0J"/>
<constraint firstItem="zu7-Wn-snh" firstAttribute="top" secondItem="8PP-FH-30R" secondAttribute="bottom" id="PLH-tg-Vmt"/>
<constraint firstAttribute="trailing" secondItem="8PP-FH-30R" secondAttribute="trailing" id="YW1-HL-HFD"/>
<constraint firstAttribute="centerX" secondItem="8vU-uH-BI3" secondAttribute="centerX" id="cGc-sp-HPo"/>
<constraint firstAttribute="centerY" secondItem="hpP-U4-MqO" secondAttribute="centerY" id="dHb-AH-Wcs"/>
<constraint firstAttribute="centerY" secondItem="8vU-uH-BI3" secondAttribute="centerY" id="fN7-xC-ySs"/>
</constraints>
<connections>
<outletCollection property="gestureRecognizers" destination="QLB-r4-lba" appends="YES" id="Pn5-CF-pUu"/>
</connections>
@@ -278,6 +339,7 @@
<outlet property="pauseButton" destination="Php-qU-dtx" id="lZA-qI-Ufq"/>
<outlet property="playButton" destination="PqC-9M-EfY" id="mKc-H3-ymF"/>
<outlet property="slider" destination="hKc-5D-84t" id="P4d-io-y7O"/>
<outlet property="tapGR" destination="QLB-r4-lba" id="fqn-hv-F5q"/>
<outlet property="timeIndicator" destination="6a5-MT-SVG" id="11M-hd-QcG"/>
<outlet property="timerCircle" destination="hpP-U4-MqO" id="YFY-mZ-vlG"/>
<outlet property="timerLabel" destination="8vU-uH-BI3" id="vHY-uI-MBP"/>

View File

@@ -1,23 +1,324 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4451" systemVersion="13A461" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="ceH-BF-CfM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3676"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
</dependencies>
<scenes>
<!--class Prefix:identifier View Controller-->
<scene sceneID="ufC-wZ-h7g">
<!--Reveal View Controller-->
<scene sceneID="J2i-ma-0c3">
<objects>
<viewController id="vXZ-lx-hvc" customClass="NKViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
<viewController id="ceH-BF-CfM" customClass="SWRevealViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="M9i-lA-ozW"/>
<viewControllerLayoutGuide type="bottom" id="0CY-0c-uXL"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="R57-sA-eTj">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
<connections>
<segue destination="aXq-4g-CzV" kind="custom" identifier="sw_rear" customClass="SWRevealViewControllerSegue" id="mZV-oI-ByH"/>
<segue destination="LWa-Z3-rnJ" kind="custom" identifier="sw_front" customClass="SWRevealViewControllerSegue" id="ZW4-V0-AcF"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="Hf2-n5-Clz" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-91" y="-95"/>
</scene>
<!--Side View Controller-->
<scene sceneID="PVW-Gp-4Lg">
<objects>
<viewController id="aXq-4g-CzV" customClass="NKSideViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Akc-aC-vAD"/>
<viewControllerLayoutGuide type="bottom" id="OZI-a9-B1S"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="efM-KO-lRb">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="g7o-6Z-saO">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="bear.jpg" translatesAutoresizingMaskIntoConstraints="NO" id="EyV-2Z-p6M">
<rect key="frame" x="0.0" y="568" width="260" height="330"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
</imageView>
</subviews>
</scrollView>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" allowsSelection="NO" rowHeight="80" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="1Be-fo-DdV">
<rect key="frame" x="0.0" y="20" width="320" height="504"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="sectionIndexTrackingBackgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="dateCell" rowHeight="80" id="q9J-Vw-HQN" customClass="NKSideMenuCell">
<rect key="frame" x="0.0" y="22" width="320" height="80"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="q9J-Vw-HQN" id="Acj-mh-c9F">
<rect key="frame" x="0.0" y="0.0" width="320" height="79"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="f6s-TQ-rEY">
<rect key="frame" x="20" y="11" width="288" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" name="HelveticaNeue-Thin" family="Helvetica Neue" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="x15" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DgL-ca-Qal">
<rect key="frame" x="63" y="42" width="127" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" name="HelveticaNeue-Thin" family="Helvetica Neue" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="icon_tomato.png" translatesAutoresizingMaskIntoConstraints="NO" id="HBA-pL-UPF">
<rect key="frame" x="20" y="35" width="35" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="icon_tomato.png" translatesAutoresizingMaskIntoConstraints="NO" id="eY1-ML-X8z">
<rect key="frame" x="63" y="35" width="35" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="icon_tomato.png" translatesAutoresizingMaskIntoConstraints="NO" id="OFS-QM-MSS">
<rect key="frame" x="106" y="35" width="35" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="icon_tomato.png" translatesAutoresizingMaskIntoConstraints="NO" id="7TJ-pv-quG">
<rect key="frame" x="149" y="35" width="35" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="icon_tomato.png" translatesAutoresizingMaskIntoConstraints="NO" id="x4a-A2-DoB">
<rect key="frame" x="192" y="35" width="35" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<connections>
<outlet property="amountLabel" destination="DgL-ca-Qal" id="QpX-pW-0Lp"/>
<outlet property="titleLabel" destination="f6s-TQ-rEY" id="1yp-gy-nWz"/>
<outletCollection property="pomodoros" destination="HBA-pL-UPF" id="JNF-nB-XFm"/>
<outletCollection property="pomodoros" destination="eY1-ML-X8z" id="KzE-B2-XiY"/>
<outletCollection property="pomodoros" destination="OFS-QM-MSS" id="gyP-8F-tAK"/>
<outletCollection property="pomodoros" destination="7TJ-pv-quG" id="zF5-WH-vyd"/>
<outletCollection property="pomodoros" destination="x4a-A2-DoB" id="IXW-yT-Toc"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="aXq-4g-CzV" id="PI1-rU-lPa"/>
<outlet property="delegate" destination="aXq-4g-CzV" id="JNY-3i-rH9"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" red="1" green="0.9215686917" blue="0.93725496529999996" alpha="1" colorSpace="deviceRGB"/>
<constraints>
<constraint firstItem="1Be-fo-DdV" firstAttribute="top" secondItem="Akc-aC-vAD" secondAttribute="bottom" id="5CP-RT-aht"/>
<constraint firstItem="g7o-6Z-saO" firstAttribute="leading" secondItem="efM-KO-lRb" secondAttribute="leading" id="5l2-nZ-tZI"/>
<constraint firstItem="OZI-a9-B1S" firstAttribute="top" secondItem="1Be-fo-DdV" secondAttribute="bottom" constant="44" id="AsI-7L-5em"/>
<constraint firstItem="g7o-6Z-saO" firstAttribute="top" secondItem="efM-KO-lRb" secondAttribute="top" id="Dch-fg-NTS"/>
<constraint firstAttribute="trailing" secondItem="g7o-6Z-saO" secondAttribute="trailing" id="MBB-GL-sEs"/>
<constraint firstItem="1Be-fo-DdV" firstAttribute="leading" secondItem="efM-KO-lRb" secondAttribute="leading" id="Spo-Ow-YYO"/>
<constraint firstItem="OZI-a9-B1S" firstAttribute="top" secondItem="g7o-6Z-saO" secondAttribute="bottom" id="dAq-3n-dug"/>
<constraint firstAttribute="trailing" secondItem="1Be-fo-DdV" secondAttribute="trailing" id="pl5-p7-ERS"/>
</constraints>
</view>
<connections>
<outlet property="table" destination="1Be-fo-DdV" id="DTx-uJ-RqB"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="gvY-OK-kJf" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="448" y="-792"/>
</scene>
<!--Main View Controller-->
<scene sceneID="3pu-0g-E5A">
<objects>
<viewController id="LWa-Z3-rnJ" customClass="NKMainViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Eow-SJ-8pt"/>
<viewControllerLayoutGuide type="bottom" id="W29-ae-flI"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="HqT-EA-Yq9">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kU0-1Z-WeK" userLabel="Toolbar">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="iCN-Qf-Iw2">
<rect key="frame" x="0.0" y="453" width="320" height="95"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Vnd-B9-ws5" customClass="NKTimeIndicatorView">
<rect key="frame" x="146" y="102" width="50" height="0.0"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</view>
<slider opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" minValue="0.0" maxValue="100" translatesAutoresizingMaskIntoConstraints="NO" id="aIY-nB-liY" customClass="NKTimeSlider">
<rect key="frame" x="39" y="10" width="243" height="34"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="minimumTrackTintColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<color key="maximumTrackTintColor" cocoaTouchSystemColor="darkTextColor"/>
<connections>
<action selector="sliderChanged:" destination="LWa-Z3-rnJ" eventType="valueChanged" id="X1i-LV-SS2"/>
</connections>
</slider>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ZJ7-id-9Cr">
<rect key="frame" x="73" y="51" width="35" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<state key="normal" image="icon_stop.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="stopTouched:" destination="LWa-Z3-rnJ" eventType="touchUpInside" id="TEI-U5-Gyy"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dWG-X0-pDp">
<rect key="frame" x="145" y="51" width="30" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<state key="normal" image="icon_play.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="playTouched:" destination="LWa-Z3-rnJ" eventType="touchUpInside" id="LtH-kq-DjC"/>
</connections>
</button>
<button hidden="YES" opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5HC-Zc-ORa">
<rect key="frame" x="145" y="51" width="27" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<state key="normal" image="icon_pause.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="pauseTouched:" destination="LWa-Z3-rnJ" eventType="touchUpInside" id="Wzt-Kq-CtL"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="6W2-wq-cN8">
<rect key="frame" x="209" y="51" width="37" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<state key="normal" image="icon_next.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="nextTouched:" destination="LWa-Z3-rnJ" eventType="touchUpInside" id="gvF-Zx-9dm"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="width" constant="320" id="7nb-AE-yh4"/>
<constraint firstAttribute="height" constant="95" id="HQp-7g-3Ts"/>
</constraints>
</view>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Po-Pomodoro" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sAy-s7-4dL">
<rect key="frame" x="19" y="52" width="282" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" name="HelveticaNeue-UltraLight" family="Helvetica Neue" pointSize="35"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Introduced by Nikita Kolmogorov" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eWZ-uZ-rGR">
<rect key="frame" x="19" y="85" width="282" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" name="HelveticaNeue-UltraLight" family="Helvetica Neue" pointSize="18"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0aw-4T-8Yn">
<rect key="frame" x="0.0" y="20" width="38" height="34"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<inset key="imageEdgeInsets" minX="10" minY="10" maxX="10" maxY="10"/>
<state key="normal" image="icon_side.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="toggleLeftTouched:" destination="LWa-Z3-rnJ" eventType="touchUpInside" id="Jo7-Qz-MUT"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="centerX" secondItem="iCN-Qf-Iw2" secondAttribute="centerX" id="AAu-ca-rEB"/>
<constraint firstAttribute="bottom" secondItem="iCN-Qf-Iw2" secondAttribute="bottom" constant="20" id="UuN-6Y-HEe"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cN1-Gv-6n2" customClass="NKTimerCircle">
<rect key="frame" x="38" y="162" width="244" height="244"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="width" constant="244" id="VEH-PC-duQ"/>
<constraint firstAttribute="height" constant="244" id="kGo-KQ-HAK"/>
</constraints>
</view>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1:02:00" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nZs-GH-7EG" customClass="NKTimerLabel">
<rect key="frame" x="60" y="257" width="201" height="53"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<constraints>
<constraint firstAttribute="height" constant="53" id="o2d-Qp-zO1"/>
<constraint firstAttribute="width" constant="201" id="o59-dR-m5D"/>
</constraints>
<fontDescription key="fontDescription" name="HelveticaNeue-UltraLight" family="Helvetica Neue" pointSize="35"/>
<nil key="highlightedColor"/>
<connections>
<outlet property="delegate" destination="LWa-Z3-rnJ" id="rJb-bm-00m"/>
</connections>
</label>
</subviews>
<color key="backgroundColor" red="1" green="0.92205851019999996" blue="0.93625991789999996" alpha="1" colorSpace="calibratedRGB"/>
<gestureRecognizers/>
<constraints>
<constraint firstAttribute="centerX" secondItem="cN1-Gv-6n2" secondAttribute="centerX" id="5ci-EO-5LC"/>
<constraint firstItem="kU0-1Z-WeK" firstAttribute="leading" secondItem="HqT-EA-Yq9" secondAttribute="leading" id="CmY-Zw-W5a"/>
<constraint firstAttribute="centerY" secondItem="cN1-Gv-6n2" secondAttribute="centerY" id="GDB-j4-2Wn"/>
<constraint firstItem="kU0-1Z-WeK" firstAttribute="top" secondItem="HqT-EA-Yq9" secondAttribute="top" id="M1r-9F-zjO"/>
<constraint firstAttribute="centerY" secondItem="nZs-GH-7EG" secondAttribute="centerY" id="PMP-P5-ccL"/>
<constraint firstAttribute="centerX" secondItem="nZs-GH-7EG" secondAttribute="centerX" id="dlW-EA-LVS"/>
<constraint firstItem="W29-ae-flI" firstAttribute="top" secondItem="kU0-1Z-WeK" secondAttribute="bottom" id="lJ3-aI-Swf"/>
<constraint firstAttribute="trailing" secondItem="kU0-1Z-WeK" secondAttribute="trailing" id="vPa-rL-WVo"/>
</constraints>
<connections>
<outletCollection property="gestureRecognizers" destination="eet-07-lVC" appends="YES" id="vfP-Aj-sfM"/>
</connections>
</view>
<connections>
<outlet property="pauseButton" destination="5HC-Zc-ORa" id="QUy-ct-IY4"/>
<outlet property="playButton" destination="dWG-X0-pDp" id="8QN-Nc-T4W"/>
<outlet property="slider" destination="aIY-nB-liY" id="D3p-BX-I46"/>
<outlet property="tapGR" destination="eet-07-lVC" id="K37-U1-gj2"/>
<outlet property="timeIndicator" destination="Vnd-B9-ws5" id="Q7A-OQ-LXI"/>
<outlet property="timerCircle" destination="cN1-Gv-6n2" id="9fC-cQ-PkI"/>
<outlet property="timerLabel" destination="nZs-GH-7EG" id="rW4-XV-ndL"/>
<outlet property="toolbar" destination="kU0-1Z-WeK" id="OhN-DA-l8Z"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="0zy-PB-MRM" userLabel="First Responder" sceneMemberID="firstResponder"/>
<tapGestureRecognizer id="eet-07-lVC">
<connections>
<action selector="screenTapped:" destination="LWa-Z3-rnJ" id="FNb-CW-g86"/>
</connections>
</tapGestureRecognizer>
</objects>
<point key="canvasLocation" x="448" y="-95"/>
</scene>
</scenes>
<resources>
<image name="bear.jpg" width="281" height="357"/>
<image name="icon_next.png" width="256" height="247"/>
<image name="icon_pause.png" width="193" height="256"/>
<image name="icon_play.png" width="213" height="256"/>
<image name="icon_side.png" width="256" height="182"/>
<image name="icon_stop.png" width="256" height="256"/>
<image name="icon_tomato.png" width="70" height="70"/>
</resources>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>

View File

@@ -17,6 +17,7 @@
// UI properties
@property (weak, nonatomic) IBOutlet UIView *toolbar;
@property (strong, nonatomic) IBOutlet UITapGestureRecognizer *tapGR;
@property (weak, nonatomic) IBOutlet NKTimerLabel *timerLabel;
@property (weak, nonatomic) IBOutlet NKTimerCircle *timerCircle;

View File

@@ -160,7 +160,21 @@
NSMutableArray *array = [[userDefaults objectForKey:pomodoroHistory] mutableCopy];
[array addObject:@([[NSDate date] timeIntervalSince1970])];
[userDefaults setObject:array forKey:pomodoroHistory];
NSLog(@"%@",[userDefaults objectForKey:pomodoroHistory]);
}
#pragma mark - Rotation -
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
if (!IPAD) {
if (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft ||
toInterfaceOrientation == UIInterfaceOrientationLandscapeRight) {
[self hideToolbar:YES];
self.tapGR.enabled = NO;
} else {
[self hideToolbar:NO];
self.tapGR.enabled = YES;
}
}
}
@end

View File

@@ -37,6 +37,7 @@
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>