Skip to content

Commit

Permalink
Update Teslameter with storyboard (#41).
Browse files Browse the repository at this point in the history
BlueRiverInteractive committed May 3, 2015
1 parent 95ab044 commit 22f82ea
Showing 57 changed files with 715 additions and 76 deletions.
35 changes: 4 additions & 31 deletions Teslameter/Info.plist.xml
Original file line number Diff line number Diff line change
@@ -24,6 +24,10 @@
<string>${app.build}</string>
<key>LSRequiresIPhoneOS</key>
<true />
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
@@ -36,42 +40,11 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Icon-Small</string>
<string>Icon-Small-40</string>
<string>Icon</string>
<string>Icon-60</string>
<string>Icon-72</string>
</array>
</dict>
</dict>
<key>CFBundleIcons~ipad</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>Icon-Small</string>
<string>Icon-Small-40</string>
<string>Icon-72</string>
<string>Icon-76</string>
</array>
</dict>
</dict>
</dict>
</plist>
111 changes: 111 additions & 0 deletions Teslameter/resources/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="5056" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="CrX-JI-5mM">
<dependencies>
<deployment defaultVersion="1536" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/>
</dependencies>
<scenes>
<!--TeslameterViewController-->
<scene sceneID="58u-1D-MtD">
<objects>
<viewController storyboardIdentifier="TeslameterViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="CrX-JI-5mM" userLabel="TeslameterViewController" customClass="TeslameterViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="TJL-31-dvV"/>
<viewControllerLayoutGuide type="bottom" id="Wsr-Bg-EHt"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Dim-F1-SPb">
<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="Jxp-VP-lg9">
<rect key="frame" x="0.0" y="20" width="320" height="548"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="egR-9g-BDr">
<rect key="frame" x="0.0" y="44" width="320" height="460"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView opaque="NO" clearsContextBeforeDrawing="NO" userInteractionEnabled="NO" contentMode="center" fixedFrame="YES" image="Background.png" translatesAutoresizingMaskIntoConstraints="NO" id="10I-Ez-9Mq">
<rect key="frame" x="0.0" y="-20" width="320" height="480"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" alpha="0.69999998807907104" contentMode="scaleToFill" fixedFrame="YES" text="--.-" textAlignment="right" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="fo0-3d-ON0">
<rect key="frame" x="20" y="20" width="280" height="124"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" name="Helvetica" family="Helvetica" pointSize="96"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" fixedFrame="YES" text="0.0" textAlignment="right" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="7jh-FE-e0r">
<rect key="frame" x="20" y="386" width="71" height="33"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" name="Helvetica-Bold" family="Helvetica" pointSize="18"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" fixedFrame="YES" text="0.0" textAlignment="right" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="0Yc-G0-1Hv">
<rect key="frame" x="120" y="386" width="74" height="33"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" name="Helvetica-Bold" family="Helvetica" pointSize="18"/>
<color key="textColor" red="0.14139545000000001" green="0.77173913000000005" blue="0.012271814000000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" fixedFrame="YES" text="0.0" textAlignment="right" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="lXI-YJ-4ic">
<rect key="frame" x="224" y="387" width="75" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" name="Helvetica-Bold" family="Helvetica" pointSize="18"/>
<color key="textColor" red="0.077163397999999994" green="0.065879940999999997" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="6Se-eq-dXn" customClass="GraphView">
<rect key="frame" x="17" y="199" width="286" height="134"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</subviews>
<color key="backgroundColor" red="0.010869563" green="0.010869563" blue="0.010869563" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="320" id="diB-0H-cGp"/>
<constraint firstAttribute="height" constant="460" id="rS9-Ut-kOW"/>
</constraints>
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics" statusBarStyle="blackOpaque"/>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="centerX" secondItem="egR-9g-BDr" secondAttribute="centerX" id="3HH-nB-fk5"/>
<constraint firstAttribute="centerY" secondItem="egR-9g-BDr" secondAttribute="centerY" id="Y04-Bc-MiJ"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="Wsr-Bg-EHt" firstAttribute="top" secondItem="Jxp-VP-lg9" secondAttribute="bottom" id="E7y-NP-g9v"/>
<constraint firstAttribute="trailing" secondItem="Jxp-VP-lg9" secondAttribute="trailing" id="Kr5-yh-JpX"/>
<constraint firstItem="Jxp-VP-lg9" firstAttribute="leading" secondItem="Dim-F1-SPb" secondAttribute="leading" id="P7Y-6Y-kHh"/>
<constraint firstItem="Jxp-VP-lg9" firstAttribute="top" secondItem="TJL-31-dvV" secondAttribute="bottom" id="XZo-b5-iFU"/>
</constraints>
</view>
<connections>
<outlet property="graphView" destination="6Se-eq-dXn" id="dME-a8-iYf"/>
<outlet property="magnitudeLabel" destination="fo0-3d-ON0" id="MT9-GW-bbc"/>
<outlet property="view" destination="Dim-F1-SPb" id="dtu-In-FYe"/>
<outlet property="xLabel" destination="7jh-FE-e0r" id="Buo-3V-8xz"/>
<outlet property="yLabel" destination="0Yc-G0-1Hv" id="n2P-Qu-S2k"/>
<outlet property="zLabel" destination="lXI-YJ-4ic" id="79p-Lq-YPH"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="FHC-0t-HiW" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="144" y="85"/>
</scene>
</scenes>
<resources>
<image name="Background.png" width="320" height="480"/>
</resources>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination" type="retina4"/>
</simulatedMetricsContainer>
</document>
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"images" : [
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-Small@2x-1.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-Small@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-Small-40@2x-1.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-Small-40@3x.png",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-60@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-Small.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-Small@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-Small-40.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-Small-40@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-76.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-76@2x.png",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"images" : [
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"filename" : "Default@2x~iphone.png",
"scale" : "2x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "retina4",
"filename" : "Default-568h@2x~iphone.png",
"minimum-system-version" : "7.0",
"orientation" : "portrait",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"filename" : "Default-Portrait~ipad.png",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"filename" : "Default-Landscape~ipad.png",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"filename" : "Default-Portrait@2x~ipad.png",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"filename" : "Default-Landscape@2x~ipad.png",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
File renamed without changes
4 changes: 3 additions & 1 deletion Teslameter/robovm.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#
#Sun May 03 13:28:58 CEST 2015
app.version=1.0
app.id=org.robovm.samples.teslameter
app.mainclass=org.robovm.samples.teslameter.Teslameter
app.executable=Teslameter
app.build=1
app.name=Teslameter
app.name=Teslameter
26 changes: 11 additions & 15 deletions Teslameter/robovm.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<config>
<executableName>${app.executable}</executableName>
<mainClass>${app.mainclass}</mainClass>
<os>ios</os>
<arch>thumbv7</arch>
<resources>
<resource>
<directory>resources</directory>
</resource>
</resources>
<target>ios</target>
<iosInfoPList>Info.plist.xml</iosInfoPList>
<frameworks>
<framework>CoreGraphics</framework>
<framework>CoreLocation</framework>
</frameworks>
<executableName>${app.executable}</executableName>
<mainClass>${app.mainclass}</mainClass>
<os>ios</os>
<arch>thumbv7</arch>
<resources>
<resource>
<directory>resources</directory>
</resource>
</resources>
<target>ios</target>
<iosInfoPList>Info.plist.xml</iosInfoPList>
</config>
Loading

0 comments on commit 22f82ea

Please sign in to comment.