Inigo Valentin 10 лет назад
Родитель
Сommit
561f581665
32 измененных файлов с 232 добавлено и 126 удалено
  1. 2 0
      Gasteizko Margolariak.xcodeproj/project.pbxproj
  2. 11 7
      Gasteizko Margolariak/AppDelegate.swift
  3. 0 86
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/Contents.json
  4. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-1.png
  5. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-10.png
  6. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-11.png
  7. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-12.png
  8. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-2.png
  9. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-3.png
  10. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-4.png
  11. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-5.png
  12. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-6.png
  13. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-7.png
  14. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-8.png
  15. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-9.png
  16. BIN
      Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo.png
  17. 49 0
      Gasteizko Margolariak/Assets.xcassets/Brand Assets.launchimage/Contents.json
  18. 6 0
      Gasteizko Margolariak/Assets.xcassets/Contents.json
  19. 89 8
      Gasteizko Margolariak/Base.lproj/Main.storyboard
  20. 4 3
      Gasteizko Margolariak/BaseTableViewCell.swift
  21. 4 8
      Gasteizko Margolariak/DataTableViewCell.xib
  22. 6 0
      Gasteizko Margolariak/Images.xcassets/AppIcon.appiconset/Contents.json
  23. 23 0
      Gasteizko Margolariak/Images.xcassets/ic_launcher_24dp.imageset/Contents.json
  24. BIN
      Gasteizko Margolariak/Images.xcassets/ic_launcher_24dp.imageset/ic_launcher_24dp.png
  25. BIN
      Gasteizko Margolariak/Images.xcassets/ic_launcher_24dp.imageset/ic_launcher_24dp@2x.png
  26. BIN
      Gasteizko Margolariak/Images.xcassets/ic_launcher_24dp.imageset/ic_launcher_24dp@3x.png
  27. 4 0
      Gasteizko Margolariak/Info.plist
  28. 5 5
      Gasteizko Margolariak/LeftViewController.swift
  29. 29 9
      Gasteizko Margolariak/UIViewController.swift
  30. BIN
      Gasteizko Margolariak/res/ic_launcher_24dp.png
  31. BIN
      Gasteizko Margolariak/res/ic_launcher_24dp@2x.png
  32. BIN
      Gasteizko Margolariak/res/ic_launcher_24dp@3x.png

+ 2 - 0
Gasteizko Margolariak.xcodeproj/project.pbxproj

@@ -540,6 +540,7 @@
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				INFOPLIST_FILE = "Gasteizko Margolariak/Info.plist";
@@ -555,6 +556,7 @@
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
 				CODE_SIGN_IDENTITY = "iPhone Developer";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				INFOPLIST_FILE = "Gasteizko Margolariak/Info.plist";

+ 11 - 7
Gasteizko Margolariak/AppDelegate.swift

@@ -1,9 +1,11 @@
 //
 //  AppDelegate.swift
-//  test11
+//  Gasteizko Margolariak
 //
-//  Created by Yuji Hato on 4/20/15.
-//  Copyright (c) 2015 Yuji Hato. All rights reserved.
+//  Created by Inigo Valentin on 2016-08-23
+//  Copyright © 2016 Inigo Valentin. All rights reserved.
+//
+//  Based on the work of Yuji Hato.
 //
 
 import UIKit
@@ -23,15 +25,17 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
         let leftViewController = storyboard.instantiateViewControllerWithIdentifier("LeftViewController") as! LeftViewController
         
         let nvc: UINavigationController = UINavigationController(rootViewController: mainViewController)
-        
-        UINavigationBar.appearance().tintColor = UIColor(hex: "689F38")
-        
+		
+		UINavigationBar.appearance().tintColor = UIColor.blackColor()
+		UINavigationBar.appearance().backgroundColor = UIColor(hex: "4c9ed8")
+		
         leftViewController.mainViewController = nvc
         
         let slideMenuController = ExSlideMenuController(mainViewController:nvc, leftMenuViewController: leftViewController)
         slideMenuController.automaticallyAdjustsScrollViewInsets = true
         slideMenuController.delegate = mainViewController
-        self.window?.backgroundColor = UIColor(red: 236.0, green: 238.0, blue: 241.0, alpha: 1.0)
+        //self.window?.backgroundColor = UIColor(red: 236.0, green: 238.0, blue: 241.0, alpha: 1.0)
+		self.window?.backgroundColor = UIColor(hex: "c6e4f6")
         self.window?.rootViewController = slideMenuController
         self.window?.makeKeyAndVisible()
     }

+ 0 - 86
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/Contents.json

@@ -1,86 +0,0 @@
-{
-  "images" : [
-    {
-      "size" : "29x29",
-      "idiom" : "iphone",
-      "filename" : "logo.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "29x29",
-      "idiom" : "iphone",
-      "filename" : "logo-1.png",
-      "scale" : "3x"
-    },
-    {
-      "size" : "40x40",
-      "idiom" : "iphone",
-      "filename" : "logo-2.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "40x40",
-      "idiom" : "iphone",
-      "filename" : "logo-3.png",
-      "scale" : "3x"
-    },
-    {
-      "size" : "60x60",
-      "idiom" : "iphone",
-      "filename" : "logo-4.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "60x60",
-      "idiom" : "iphone",
-      "filename" : "logo-5.png",
-      "scale" : "3x"
-    },
-    {
-      "size" : "29x29",
-      "idiom" : "ipad",
-      "filename" : "logo-6.png",
-      "scale" : "1x"
-    },
-    {
-      "size" : "29x29",
-      "idiom" : "ipad",
-      "filename" : "logo-7.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "40x40",
-      "idiom" : "ipad",
-      "filename" : "logo-8.png",
-      "scale" : "1x"
-    },
-    {
-      "size" : "40x40",
-      "idiom" : "ipad",
-      "filename" : "logo-9.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "76x76",
-      "idiom" : "ipad",
-      "filename" : "logo-10.png",
-      "scale" : "1x"
-    },
-    {
-      "size" : "76x76",
-      "idiom" : "ipad",
-      "filename" : "logo-11.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "83.5x83.5",
-      "idiom" : "ipad",
-      "filename" : "logo-12.png",
-      "scale" : "2x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-1.png


BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-10.png


BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-11.png


BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-12.png


BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-2.png


BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-3.png


BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-4.png


BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-5.png


BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-6.png


BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-7.png


BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-8.png


BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo-9.png


BIN
Gasteizko Margolariak/Assets.xcassets/AppIcon.appiconset/logo.png


+ 49 - 0
Gasteizko Margolariak/Assets.xcassets/Brand Assets.launchimage/Contents.json

@@ -0,0 +1,49 @@
+{
+  "images" : [
+    {
+      "orientation" : "portrait",
+      "idiom" : "ipad",
+      "minimum-system-version" : "7.0",
+      "extent" : "full-screen",
+      "scale" : "2x"
+    },
+    {
+      "orientation" : "landscape",
+      "idiom" : "ipad",
+      "minimum-system-version" : "7.0",
+      "extent" : "full-screen",
+      "scale" : "1x"
+    },
+    {
+      "orientation" : "landscape",
+      "idiom" : "ipad",
+      "minimum-system-version" : "7.0",
+      "extent" : "full-screen",
+      "scale" : "2x"
+    },
+    {
+      "orientation" : "portrait",
+      "idiom" : "iphone",
+      "minimum-system-version" : "7.0",
+      "scale" : "2x"
+    },
+    {
+      "orientation" : "portrait",
+      "idiom" : "iphone",
+      "minimum-system-version" : "7.0",
+      "subtype" : "retina4",
+      "scale" : "2x"
+    },
+    {
+      "orientation" : "portrait",
+      "idiom" : "ipad",
+      "minimum-system-version" : "7.0",
+      "extent" : "full-screen",
+      "scale" : "1x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

+ 6 - 0
Gasteizko Margolariak/Assets.xcassets/Contents.json

@@ -0,0 +1,6 @@
+{
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

+ 89 - 8
Gasteizko Margolariak/Base.lproj/Main.storyboard

@@ -47,24 +47,103 @@
                         <viewControllerLayoutGuide type="top" id="ojD-hk-v0s"/>
                         <viewControllerLayoutGuide type="bottom" id="hXM-FI-ON0"/>
                     </layoutGuides>
-                    <view key="view" alpha="0.90000000000000002" contentMode="scaleToFill" id="REJ-n5-19V">
+                    <view key="view" autoresizesSubviews="NO" contentMode="scaleToFill" verticalHuggingPriority="1" verticalCompressionResistancePriority="1" id="REJ-n5-19V">
                         <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                         <subviews>
-                            <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="tZ8-EX-Dgz">
-                                <rect key="frame" x="0.0" y="160" width="600" height="440"/>
+                            <tableView clipsSubviews="YES" contentMode="scaleToFill" verticalHuggingPriority="1" verticalCompressionResistancePriority="1" bounces="NO" keyboardDismissMode="onDrag" dataMode="prototypes" style="plain" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="tZ8-EX-Dgz">
+                                <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
                                 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
-                                <color key="sectionIndexBackgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+                                <edgeInsets key="layoutMargins" top="0.0" left="8" bottom="0.0" right="8"/>
+                                <color key="separatorColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
+                                <inset key="separatorInset" minX="20" minY="0.0" maxX="20" maxY="0.0"/>
+                                <color key="sectionIndexColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
+                                <color key="sectionIndexBackgroundColor" red="0.29803921568627451" green="0.61960784313725492" blue="0.84705882352941175" alpha="1" colorSpace="calibratedRGB"/>
+                                <prototypes>
+                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="dqU-bn-Fff">
+                                        <rect key="frame" x="0.0" y="22" width="600" height="44"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="dqU-bn-Fff" id="BKe-fm-u0f">
+                                            <rect key="frame" x="0.0" y="0.0" width="600" height="43"/>
+                                            <autoresizingMask key="autoresizingMask"/>
+                                        </tableViewCellContentView>
+                                    </tableViewCell>
+                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="SJ4-Ph-yIO">
+                                        <rect key="frame" x="0.0" y="66" width="600" height="44"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="SJ4-Ph-yIO" id="Bqp-Tc-GA4">
+                                            <rect key="frame" x="0.0" y="0.0" width="600" height="43"/>
+                                            <autoresizingMask key="autoresizingMask"/>
+                                        </tableViewCellContentView>
+                                    </tableViewCell>
+                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="2is-mw-lma">
+                                        <rect key="frame" x="0.0" y="110" width="600" height="44"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="2is-mw-lma" id="Jbn-ga-DQD">
+                                            <rect key="frame" x="0.0" y="0.0" width="600" height="43"/>
+                                            <autoresizingMask key="autoresizingMask"/>
+                                        </tableViewCellContentView>
+                                    </tableViewCell>
+                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="4ZE-n6-VHL">
+                                        <rect key="frame" x="0.0" y="154" width="600" height="44"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="4ZE-n6-VHL" id="PeY-d3-Enn">
+                                            <rect key="frame" x="0.0" y="0.0" width="600" height="43"/>
+                                            <autoresizingMask key="autoresizingMask"/>
+                                        </tableViewCellContentView>
+                                    </tableViewCell>
+                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="vnu-HJ-e5K">
+                                        <rect key="frame" x="0.0" y="198" width="600" height="44"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="vnu-HJ-e5K" id="6Sz-Zx-8WV">
+                                            <rect key="frame" x="0.0" y="0.0" width="600" height="43"/>
+                                            <autoresizingMask key="autoresizingMask"/>
+                                        </tableViewCellContentView>
+                                    </tableViewCell>
+                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="of4-xV-QiP">
+                                        <rect key="frame" x="0.0" y="242" width="600" height="44"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="of4-xV-QiP" id="F03-76-3TU">
+                                            <rect key="frame" x="0.0" y="0.0" width="600" height="43"/>
+                                            <autoresizingMask key="autoresizingMask"/>
+                                        </tableViewCellContentView>
+                                    </tableViewCell>
+                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="AkS-Q3-gDU">
+                                        <rect key="frame" x="0.0" y="286" width="600" height="44"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="AkS-Q3-gDU" id="qBg-ct-kHt">
+                                            <rect key="frame" x="0.0" y="0.0" width="600" height="43"/>
+                                            <autoresizingMask key="autoresizingMask"/>
+                                        </tableViewCellContentView>
+                                    </tableViewCell>
+                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="Zo7-4A-Jpm">
+                                        <rect key="frame" x="0.0" y="330" width="600" height="44"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="Zo7-4A-Jpm" id="Zoo-lD-6Ah">
+                                            <rect key="frame" x="0.0" y="0.0" width="600" height="43"/>
+                                            <autoresizingMask key="autoresizingMask"/>
+                                        </tableViewCellContentView>
+                                    </tableViewCell>
+                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="HUm-K8-BNO">
+                                        <rect key="frame" x="0.0" y="374" width="600" height="44"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="HUm-K8-BNO" id="nfi-xx-L3A">
+                                            <rect key="frame" x="0.0" y="0.0" width="600" height="43"/>
+                                            <autoresizingMask key="autoresizingMask"/>
+                                        </tableViewCellContentView>
+                                    </tableViewCell>
+                                </prototypes>
+                                <sections/>
                                 <connections>
                                     <outlet property="dataSource" destination="Mog-8S-rDV" id="H0W-OR-4JG"/>
                                     <outlet property="delegate" destination="Mog-8S-rDV" id="9co-7s-CEv"/>
                                 </connections>
                             </tableView>
                         </subviews>
-                        <color key="backgroundColor" red="0.94509803921568625" green="0.97254901960784312" blue="0.9137254901960784" alpha="1" colorSpace="calibratedRGB"/>
+                        <color key="backgroundColor" red="0.29803921568627451" green="0.61960784313725492" blue="0.84705882352941175" alpha="1" colorSpace="calibratedRGB"/>
                         <constraints>
                             <constraint firstItem="hXM-FI-ON0" firstAttribute="top" secondItem="tZ8-EX-Dgz" secondAttribute="bottom" id="JJj-IC-vli"/>
-                            <constraint firstItem="tZ8-EX-Dgz" firstAttribute="top" secondItem="REJ-n5-19V" secondAttribute="top" constant="160" id="K0e-FY-E01"/>
+                            <constraint firstItem="tZ8-EX-Dgz" firstAttribute="top" secondItem="REJ-n5-19V" secondAttribute="top" id="K0e-FY-E01"/>
                             <constraint firstAttribute="trailing" secondItem="tZ8-EX-Dgz" secondAttribute="trailing" id="g5C-cu-sdP"/>
                             <constraint firstItem="tZ8-EX-Dgz" firstAttribute="leading" secondItem="REJ-n5-19V" secondAttribute="leading" id="pzK-e6-Yy4"/>
                         </constraints>
@@ -87,7 +166,7 @@
                         <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
                         <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
                     </layoutGuides>
-                    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
+                    <view key="view" opaque="NO" alpha="0.0" contentMode="scaleToFill" id="8bC-Xf-vdC">
                         <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                         <subviews>
@@ -100,7 +179,8 @@
                                 </connections>
                             </tableView>
                         </subviews>
-                        <color key="backgroundColor" red="0.89411764705882357" green="0.9137254901960784" blue="0.9137254901960784" alpha="1" colorSpace="calibratedRGB"/>
+                        <color key="backgroundColor" red="0.77647058823529413" green="0.89411764705882346" blue="0.96470588235294119" alpha="1" colorSpace="calibratedRGB"/>
+                        <color key="tintColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
                         <constraints>
                             <constraint firstAttribute="trailing" secondItem="MNw-nN-8ak" secondAttribute="trailing" id="0gj-9S-3k5"/>
                             <constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="MNw-nN-8ak" secondAttribute="bottom" id="47o-gV-Kd1"/>
@@ -527,4 +607,5 @@
             <point key="canvasLocation" x="138" y="2864"/>
         </scene>
     </scenes>
+    <color key="tintColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
 </document>

+ 4 - 3
Gasteizko Margolariak/BaseTableViewCell.swift

@@ -34,9 +34,10 @@ public class BaseTableViewCell : UITableViewCell {
     }
     
     public func setData(data: Any?) {
-        self.backgroundColor = UIColor(hex: "3344ff")
-        self.textLabel?.font = UIFont.italicSystemFontOfSize(18)
-        self.textLabel?.textColor = UIColor(hex: "000000")
+        self.backgroundColor = UIColor(hex: "4c9ed8")
+        //self.textLabel?.font = UIFont.italicSystemFontOfSize(18)
+		self.textLabel?.font = UIFont.boldSystemFontOfSize(19)
+        self.textLabel?.textColor = UIColor(hex: "ffffff")
         if let menuText = data as? String {
             self.textLabel?.text = menuText
         }

+ 4 - 8
Gasteizko Margolariak/DataTableViewCell.xib

@@ -1,22 +1,21 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9059" systemVersion="15B42" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10117" systemVersion="15A284" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9049"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
     </dependencies>
     <objects>
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
         <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
-        <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="c3H-ux-4zZ" customClass="DataTableViewCell" customModule="SlideMenuControllerSwift" customModuleProvider="target">
+        <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="c3H-ux-4zZ" customClass="DataTableViewCell" customModule="Gasteizko_Margolariak" customModuleProvider="target">
             <rect key="frame" x="0.0" y="0.0" width="320" height="80"/>
             <autoresizingMask key="autoresizingMask"/>
             <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="c3H-ux-4zZ" id="eWK-b2-p7R">
-                <rect key="frame" x="0.0" y="0.0" width="320" height="79.5"/>
+                <rect key="frame" x="0.0" y="0.0" width="320" height="79"/>
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
                     <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="ppM-43-tik">
                         <rect key="frame" x="0.0" y="0.0" width="80" height="80"/>
-                        <animations/>
                         <constraints>
                             <constraint firstAttribute="height" constant="80" id="osB-9J-1ls"/>
                             <constraint firstAttribute="width" constant="80" id="wNA-oV-Ceo"/>
@@ -24,7 +23,6 @@
                     </imageView>
                     <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="I30-9I-EnW">
                         <rect key="frame" x="88" y="19" width="224" height="42"/>
-                        <animations/>
                         <constraints>
                             <constraint firstAttribute="height" constant="42" id="tMX-bK-3QC"/>
                         </constraints>
@@ -33,7 +31,6 @@
                         <nil key="highlightedColor"/>
                     </label>
                 </subviews>
-                <animations/>
                 <constraints>
                     <constraint firstItem="I30-9I-EnW" firstAttribute="leading" secondItem="ppM-43-tik" secondAttribute="trailing" constant="8" id="0sI-CM-qrq"/>
                     <constraint firstItem="I30-9I-EnW" firstAttribute="centerY" secondItem="eWK-b2-p7R" secondAttribute="centerY" id="CC8-Ve-GEE"/>
@@ -42,7 +39,6 @@
                     <constraint firstAttribute="trailing" secondItem="I30-9I-EnW" secondAttribute="trailing" constant="8" id="rG9-lK-Ze8"/>
                 </constraints>
             </tableViewCellContentView>
-            <animations/>
             <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
             <connections>
                 <outlet property="dataImage" destination="ppM-43-tik" id="xdO-QO-GUo"/>

+ 6 - 0
Gasteizko Margolariak/Images.xcassets/AppIcon.appiconset/Contents.json

@@ -0,0 +1,6 @@
+{
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

+ 23 - 0
Gasteizko Margolariak/Images.xcassets/ic_launcher_24dp.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "ic_launcher_24dp.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "ic_launcher_24dp@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "ic_launcher_24dp@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
Gasteizko Margolariak/Images.xcassets/ic_launcher_24dp.imageset/ic_launcher_24dp.png


BIN
Gasteizko Margolariak/Images.xcassets/ic_launcher_24dp.imageset/ic_launcher_24dp@2x.png


BIN
Gasteizko Margolariak/Images.xcassets/ic_launcher_24dp.imageset/ic_launcher_24dp@3x.png


+ 4 - 0
Gasteizko Margolariak/Info.plist

@@ -6,6 +6,10 @@
 	<string>en</string>
 	<key>CFBundleExecutable</key>
 	<string>$(EXECUTABLE_NAME)</string>
+	<key>CFBundleIcons</key>
+	<dict/>
+	<key>CFBundleIcons~ipad</key>
+	<dict/>
 	<key>CFBundleIdentifier</key>
 	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
 	<key>CFBundleInfoDictionaryVersion</key>

+ 5 - 5
Gasteizko Margolariak/LeftViewController.swift

@@ -42,7 +42,7 @@ class LeftViewController : UIViewController, LeftMenuProtocol {
     var galleryViewController: UIViewController!
     var settingsViewController: UIViewController!
     
-    var imageHeaderView: ImageHeaderView!
+   // var imageHeaderView: ImageHeaderView!
     
     required init?(coder aDecoder: NSCoder) {
         super.init(coder: aDecoder)
@@ -50,7 +50,7 @@ class LeftViewController : UIViewController, LeftMenuProtocol {
    
     override func viewDidLoad() {
         super.viewDidLoad()
-        self.tableView.separatorColor = UIColor(red: 0, green: 0, blue: 0, alpha: 1.0)
+        //self.tableView.separatorColor = UIColor(red: 0, green: 0, blue: 0, alpha: 1.0)
         
         let storyboard = UIStoryboard(name: "Main", bundle: nil)
         
@@ -83,8 +83,8 @@ class LeftViewController : UIViewController, LeftMenuProtocol {
 		
         self.tableView.registerCellClass(BaseTableViewCell.self)
         
-        self.imageHeaderView = ImageHeaderView.loadNib()
-        self.view.addSubview(self.imageHeaderView)
+        //self.imageHeaderView = ImageHeaderView.loadNib()
+        //self.view.addSubview(self.imageHeaderView)
     }
     
     override func viewDidAppear(animated: Bool) {
@@ -93,7 +93,7 @@ class LeftViewController : UIViewController, LeftMenuProtocol {
     
     override func viewDidLayoutSubviews() {
         super.viewDidLayoutSubviews()
-        self.imageHeaderView.frame = CGRect(x: 0, y: 0, width: self.view.frame.width, height: 160)
+        //self.imageHeaderView.frame = CGRect(x: 0, y: 0, width: self.view.frame.width, height: 160)
         self.view.layoutIfNeeded()
     }
     

+ 29 - 9
Gasteizko Margolariak/UIViewController.swift

@@ -1,9 +1,11 @@
 //
-//  UIViewControllerExtension.swift
+//  UIViewController.swift
 //  Gasteizko Margolariak
 //
-//  Created by Yuji Hato on 1/19/15.
-//  Copyright (c) 2015 Yuji Hato. All rights reserved.
+//  Created by Inigo Valentin on 2016-08-23
+//  Copyright © 2016 Inigo Valentin. All rights reserved.
+//
+//  Based on the work of Yuji Hato.
 //
 
 import UIKit
@@ -11,18 +13,36 @@ import UIKit
 extension UIViewController {
     
     func setNavigationBarItem() {
-        self.addLeftBarButtonWithImage(UIImage(named: "ic_menu_black_24dp")!)
-        self.addRightBarButtonWithImage(UIImage(named: "ic_notifications_black_24dp")!)
-        self.slideMenuController()?.removeLeftGestures()
-        self.slideMenuController()?.removeRightGestures()
+		self.addLeftBarButtonWithImage(UIImage(named: "ic_menu_black_24dp")!)
+		
+		let myView: UIView = UIView(frame: CGRectMake(0, 0, 300, 30))
+		var title: UILabel = UILabel(frame: CGRectMake(0, 0, 300, 30))
+		title.text = "Gasteizko Margolariak"
+		title.textColor = UIColor.blackColor()
+		title.font = UIFont.boldSystemFontOfSize(20.0)
+		title.backgroundColor = UIColor.clearColor()
+		let image: UIImage = UIImage(named: "ic_launcher_24dp.png")!
+		var myImageView: UIImageView = UIImageView(image: image)
+		myImageView.frame = CGRectMake(230, 0, 30, 30)
+		myImageView.layer.cornerRadius = 5.0
+		myImageView.layer.masksToBounds = true
+		myImageView.layer.borderColor = UIColor.lightGrayColor().CGColor
+		myImageView.layer.borderWidth = 0.1
+		myView.addSubview(title)
+		myView.backgroundColor = UIColor.clearColor()
+		myView.addSubview(myImageView)
+		
+		self.navigationItem.titleView = myView
+		
+		
+		self.slideMenuController()?.removeLeftGestures()
         self.slideMenuController()?.addLeftGestures()
-        self.slideMenuController()?.addRightGestures()
     }
     
     func removeNavigationBarItem() {
         self.navigationItem.leftBarButtonItem = nil
         self.navigationItem.rightBarButtonItem = nil
         self.slideMenuController()?.removeLeftGestures()
-        self.slideMenuController()?.removeRightGestures()
+        //self.slideMenuController()?.removeRightGestures()
     }
 }

BIN
Gasteizko Margolariak/res/ic_launcher_24dp.png


BIN
Gasteizko Margolariak/res/ic_launcher_24dp@2x.png


BIN
Gasteizko Margolariak/res/ic_launcher_24dp@3x.png