From 8b83dd774db7c9a0ca11a4fa8697598d944c8788 Mon Sep 17 00:00:00 2001 From: jakobsbode <jakobsbode@mi.fu-berlin.de> Date: Wed, 14 Dec 2016 16:58:11 +0100 Subject: [PATCH] began init sequence --- enzevalos_iphone/AppDelegate.swift | 2 + enzevalos_iphone/Base.lproj/Main.storyboard | 103 ++++++++++++++++++-- enzevalos_iphone/Base.lproj/Main.strings | 69 +++++++++++++ enzevalos_iphone/InitViewController.swift | 15 +++ 4 files changed, 179 insertions(+), 10 deletions(-) create mode 100644 enzevalos_iphone/Base.lproj/Main.strings create mode 100644 enzevalos_iphone/InitViewController.swift diff --git a/enzevalos_iphone/AppDelegate.swift b/enzevalos_iphone/AppDelegate.swift index 734dbbee..aa3ee9ba 100644 --- a/enzevalos_iphone/AppDelegate.swift +++ b/enzevalos_iphone/AppDelegate.swift @@ -19,6 +19,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. //UINavigationBar.appearance().backgroundColor = UIColor.blueColor() + let launchedBefore = NSUserDefaults.standardUserDefaults().boolForKey("launchedBefore") + return true } diff --git a/enzevalos_iphone/Base.lproj/Main.storyboard b/enzevalos_iphone/Base.lproj/Main.storyboard index 908c71d3..4dc2d7b8 100644 --- a/enzevalos_iphone/Base.lproj/Main.storyboard +++ b/enzevalos_iphone/Base.lproj/Main.storyboard @@ -1,5 +1,5 @@ -<?xml version="1.0" encoding="UTF-8"?> -<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2555" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="Amm-QN-vA7"> +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11542" systemVersion="15G1212" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="Amm-QN-vA7"> <device id="retina4_7" orientation="portrait"> <adaptation id="fullscreen"/> </device> @@ -25,7 +25,7 @@ <rect key="frame" x="0.0" y="35" width="375" height="44"/> <autoresizingMask key="autoresizingMask"/> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="lSe-Gv-7SL" id="Zam-cw-cBg"> - <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/> + <rect key="frame" x="0.0" y="0.0" width="375" height="44"/> <autoresizingMask key="autoresizingMask"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="751" verticalCompressionResistancePriority="751" text="From:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Yii-bz-1Cd"> @@ -58,7 +58,7 @@ <rect key="frame" x="0.0" y="79" width="375" height="44"/> <autoresizingMask key="autoresizingMask"/> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" tableViewCell="ZjK-3s-N2G" id="nTH-P7-ZD7"> - <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/> + <rect key="frame" x="0.0" y="0.0" width="375" height="44"/> <autoresizingMask key="autoresizingMask"/> <subviews> <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="250" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="okf-3B-Nb6"> @@ -82,7 +82,7 @@ <rect key="frame" x="0.0" y="123" width="375" height="44"/> <autoresizingMask key="autoresizingMask"/> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" tableViewCell="HpI-HP-usd" id="kAy-AZ-pKo"> - <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/> + <rect key="frame" x="0.0" y="0.0" width="375" height="44"/> <autoresizingMask key="autoresizingMask"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Subject" lineBreakMode="wordWrap" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ywe-G2-0wJ"> @@ -111,7 +111,7 @@ <rect key="frame" x="0.0" y="176" width="375" height="72"/> <autoresizingMask key="autoresizingMask"/> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="hiO-mC-dXs" id="gEu-X7-3M0"> - <rect key="frame" x="0.0" y="0.0" width="375" height="71.5"/> + <rect key="frame" x="0.0" y="0.0" width="375" height="72"/> <autoresizingMask key="autoresizingMask"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Achtung!" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7LX-pr-0Pd"> @@ -170,7 +170,7 @@ <rect key="frame" x="0.0" y="248" width="375" height="44"/> <autoresizingMask key="autoresizingMask"/> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="sfU-SD-QZO" id="yxQ-bD-mBC"> - <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/> + <rect key="frame" x="0.0" y="0.0" width="375" height="44"/> <autoresizingMask key="autoresizingMask"/> <subviews> <stackView opaque="NO" tag="2" contentMode="scaleToFill" semanticContentAttribute="spatial" distribution="equalCentering" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="3eI-t6-Pay"> @@ -239,7 +239,7 @@ <rect key="frame" x="0.0" y="301" width="375" height="44"/> <autoresizingMask key="autoresizingMask"/> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="VrX-Dg-aLu" id="MwJ-Pq-fRD"> - <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/> + <rect key="frame" x="0.0" y="0.0" width="375" height="44"/> <autoresizingMask key="autoresizingMask"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Message" textAlignment="natural" lineBreakMode="wordWrap" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="djb-A5-Dwe"> @@ -289,7 +289,7 @@ <navigationItem key="navigationItem" id="JgT-PA-2op"> <nil key="title"/> <button key="titleView" opaque="NO" contentMode="center" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="bcV-Tv-Mmh"> - <rect key="frame" x="172.5" y="3" width="30" height="38"/> + <rect key="frame" x="173" y="3" width="30" height="38"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <color key="tintColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <state key="normal"> @@ -353,6 +353,89 @@ </objects> <point key="canvasLocation" x="-483" y="-296"/> </scene> + <!--Init View Controller--> + <scene sceneID="7So-4x-Az4"> + <objects> + <viewController id="YCZ-mR-MLu" customClass="InitViewController" customModule="enzevalos_iphone" customModuleProvider="target" sceneMemberID="viewController"> + <layoutGuides> + <viewControllerLayoutGuide type="top" id="7PS-2R-oIa"/> + <viewControllerLayoutGuide type="bottom" id="0ay-ji-bQN"/> + </layoutGuides> + <view key="view" contentMode="scaleToFill" id="cgK-fT-eLd"> + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <subviews> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Setup" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Q8I-w5-jV9" userLabel="titleLabel"> + <rect key="frame" x="26" y="37" width="323" height="30"/> + <constraints> + <constraint firstAttribute="height" constant="30" id="QKa-4o-DrA"/> + </constraints> + <fontDescription key="fontDescription" type="system" pointSize="17"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Emailaddress" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xv2-xD-r7p" userLabel="EmailaddressLabel"> + <rect key="frame" x="26" y="75" width="323" height="30"/> + <constraints> + <constraint firstAttribute="height" constant="30" id="lIR-dL-xjE"/> + </constraints> + <fontDescription key="fontDescription" type="system" pointSize="17"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="qnX-FE-GZe" userLabel="AddressInputField"> + <rect key="frame" x="26" y="113" width="323" height="30"/> + <constraints> + <constraint firstAttribute="height" constant="30" id="ruh-RL-1N3"/> + </constraints> + <nil key="textColor"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <textInputTraits key="textInputTraits"/> + </textField> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Password" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5ZO-PL-eRY" userLabel="PasswordLabel"> + <rect key="frame" x="26" y="151" width="323" height="30"/> + <constraints> + <constraint firstAttribute="height" constant="30" id="vuF-Zi-eSY"/> + </constraints> + <fontDescription key="fontDescription" type="system" pointSize="17"/> + <nil key="textColor"/> + <nil key="highlightedColor"/> + </label> + <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="vE3-zX-QbL" userLabel="PasswordInputField"> + <rect key="frame" x="26" y="189" width="323" height="30"/> + <constraints> + <constraint firstAttribute="height" constant="30" id="gPV-lR-MTe"/> + <constraint firstAttribute="height" constant="30" id="pHw-6N-zhI"/> + </constraints> + <nil key="textColor"/> + <fontDescription key="fontDescription" type="system" pointSize="14"/> + <textInputTraits key="textInputTraits"/> + </textField> + </subviews> + <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> + <constraints> + <constraint firstItem="5ZO-PL-eRY" firstAttribute="top" secondItem="qnX-FE-GZe" secondAttribute="bottom" constant="8" id="0Oa-dU-zaD"/> + <constraint firstItem="5ZO-PL-eRY" firstAttribute="leading" secondItem="cgK-fT-eLd" secondAttribute="leadingMargin" constant="10" id="0di-fI-qby"/> + <constraint firstAttribute="trailingMargin" secondItem="qnX-FE-GZe" secondAttribute="trailing" constant="10" id="4rO-yt-Caa"/> + <constraint firstItem="xv2-xD-r7p" firstAttribute="top" secondItem="Q8I-w5-jV9" secondAttribute="bottom" constant="8" id="Lj6-Fx-ZJi"/> + <constraint firstItem="Q8I-w5-jV9" firstAttribute="top" secondItem="7PS-2R-oIa" secondAttribute="bottom" constant="17" id="N89-G2-Ug4"/> + <constraint firstAttribute="trailingMargin" secondItem="vE3-zX-QbL" secondAttribute="trailing" constant="10" id="RGN-yW-ass"/> + <constraint firstAttribute="trailingMargin" secondItem="5ZO-PL-eRY" secondAttribute="trailing" constant="10" id="STB-eF-o2t"/> + <constraint firstAttribute="trailingMargin" secondItem="xv2-xD-r7p" secondAttribute="trailing" constant="10" id="WDO-i8-aco"/> + <constraint firstItem="qnX-FE-GZe" firstAttribute="leading" secondItem="cgK-fT-eLd" secondAttribute="leadingMargin" constant="10" id="abe-Uf-k1L"/> + <constraint firstItem="Q8I-w5-jV9" firstAttribute="leading" secondItem="cgK-fT-eLd" secondAttribute="leadingMargin" constant="10" id="bmL-lf-1Kz"/> + <constraint firstItem="vE3-zX-QbL" firstAttribute="top" secondItem="5ZO-PL-eRY" secondAttribute="bottom" constant="8" id="fIu-mK-mZF"/> + <constraint firstItem="vE3-zX-QbL" firstAttribute="leading" secondItem="cgK-fT-eLd" secondAttribute="leadingMargin" constant="10" id="hRz-xd-Fak"/> + <constraint firstItem="xv2-xD-r7p" firstAttribute="leading" secondItem="cgK-fT-eLd" secondAttribute="leadingMargin" constant="10" id="pEb-Hx-pD5"/> + <constraint firstAttribute="trailingMargin" secondItem="Q8I-w5-jV9" secondAttribute="trailing" constant="10" id="rdk-OZ-YlD"/> + <constraint firstItem="qnX-FE-GZe" firstAttribute="top" secondItem="xv2-xD-r7p" secondAttribute="bottom" constant="8" id="vCU-Cu-03Z"/> + </constraints> + </view> + </viewController> + <placeholder placeholderIdentifier="IBFirstResponder" id="uVT-gV-cgE" userLabel="First Responder" sceneMemberID="firstResponder"/> + </objects> + <point key="canvasLocation" x="210" y="-947"/> + </scene> <!--Inbox--> <scene sceneID="ue1-yd-fJq"> <objects> @@ -408,7 +491,7 @@ <rect key="frame" x="0.0" y="28" width="375" height="44"/> <autoresizingMask key="autoresizingMask"/> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="1fi-I0-xvl" id="H0e-IF-DRG"> - <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/> + <rect key="frame" x="0.0" y="0.0" width="375" height="44"/> <autoresizingMask key="autoresizingMask"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="Subject" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="e81-vT-F9X"> diff --git a/enzevalos_iphone/Base.lproj/Main.strings b/enzevalos_iphone/Base.lproj/Main.strings new file mode 100644 index 00000000..ee3b2b08 --- /dev/null +++ b/enzevalos_iphone/Base.lproj/Main.strings @@ -0,0 +1,69 @@ + +/* Class = "UIBarButtonItem"; title = "Cancel"; ObjectID = "0Jo-em-nbD"; */ +"0Jo-em-nbD.title" = "Cancel"; + +/* Class = "UIBarButtonItem"; title = "Send"; ObjectID = "2IZ-1g-KCZ"; */ +"2IZ-1g-KCZ.title" = "Send"; + +/* Class = "UIBarButtonItem"; title = "Unread"; ObjectID = "2JJ-ZX-lDs"; */ +"2JJ-ZX-lDs.title" = "Unread"; + +/* Class = "UILabel"; text = "!"; ObjectID = "4Fp-ob-0Ch"; */ +"4Fp-ob-0Ch.text" = "!"; + +/* Class = "UINavigationItem"; title = "Inbox"; ObjectID = "5GZ-GC-SZf"; */ +"5GZ-GC-SZf.title" = "Inbox"; + +/* Class = "UILabel"; text = "Achtung!"; ObjectID = "7LX-pr-0Pd"; */ +"7LX-pr-0Pd.text" = "Achtung!"; + +/* Class = "UIButton"; normalTitle = "Answer"; ObjectID = "9Io-ch-Bl3"; */ +"9Io-ch-Bl3.normalTitle" = "Answer"; + +/* Class = "UIButton"; normalTitle = "Trotzdem anzeigen"; ObjectID = "I7i-jf-aSX"; */ +"I7i-jf-aSX.normalTitle" = "Trotzdem anzeigen"; + +/* Class = "UIBarButtonItem"; title = "Delete"; ObjectID = "Mac-KZ-4YQ"; */ +"Mac-KZ-4YQ.title" = "Delete"; + +/* Class = "UILabel"; text = "Detail"; ObjectID = "Sdq-CE-2Do"; */ +"Sdq-CE-2Do.text" = "Detail"; + +/* Class = "UILabel"; text = "Absender"; ObjectID = "YIc-GU-Crs"; */ +"YIc-GU-Crs.text" = "Absender"; + +/* Class = "UILabel"; text = "From:"; ObjectID = "Yii-bz-1Cd"; */ +"Yii-bz-1Cd.text" = "From:"; + +/* Class = "UILabel"; text = "Subject"; ObjectID = "Ywe-G2-0wJ"; */ +"Ywe-G2-0wJ.text" = "Subject"; + +/* Class = "UILabel"; text = "Message"; ObjectID = "djb-A5-Dwe"; */ +"djb-A5-Dwe.text" = "Message"; + +/* Class = "UILabel"; text = "Body"; ObjectID = "e1n-Yc-Ceu"; */ +"e1n-Yc-Ceu.text" = "Body"; + +/* Class = "UILabel"; text = "Subject"; ObjectID = "e81-vT-F9X"; */ +"e81-vT-F9X.text" = "Subject"; + +/* Class = "UILabel"; text = "Date"; ObjectID = "fqo-qg-NcY"; */ +"fqo-qg-NcY.text" = "Date"; + +/* Class = "UILabel"; text = "Diese E-Mail könnte verändert worden sein! Bitte misstrauen Sie dem Inhalt, falls Sie ihn trotzdem lesen möchten. "; ObjectID = "lYr-bv-gD0"; */ +"lYr-bv-gD0.text" = "Diese E-Mail könnte verändert worden sein! Bitte misstrauen Sie dem Inhalt, falls Sie ihn trotzdem lesen möchten. "; + +/* Class = "UIBarButtonItem"; title = "last Update"; ObjectID = "mki-ya-mz8"; */ +"mki-ya-mz8.title" = "last Update"; + +/* Class = "UILabel"; text = "Title"; ObjectID = "okf-3B-Nb6"; */ +"okf-3B-Nb6.text" = "Title"; + +/* Class = "UIButton"; normalTitle = "Ignorieren"; ObjectID = "qTi-rO-CH3"; */ +"qTi-rO-CH3.normalTitle" = "Ignorieren"; + +/* Class = "UITextView"; accessibilityLabel = "test"; ObjectID = "quA-hP-Xkp"; */ +"quA-hP-Xkp.accessibilityLabel" = "test"; + +/* Class = "UIBarButtonItem"; title = "Archive"; ObjectID = "tGx-Pm-eAc"; */ +"tGx-Pm-eAc.title" = "Archive"; diff --git a/enzevalos_iphone/InitViewController.swift b/enzevalos_iphone/InitViewController.swift new file mode 100644 index 00000000..6c35346d --- /dev/null +++ b/enzevalos_iphone/InitViewController.swift @@ -0,0 +1,15 @@ +// +// InitViewController.swift +// enzevalos_iphone +// +// Created by jakobsbode on 14.12.16. +// Copyright © 2016 fu-berlin. All rights reserved. +// + +import Foundation +import UIKit + +class InitViewController : UIViewController { + + +} -- GitLab