aboutsummaryrefslogtreecommitdiffstats
path: root/iBean.old/iBean
diff options
context:
space:
mode:
authorEddie Ehlin <eddiex@eddiex.se>2012-12-31 00:08:03 +0100
committerEddie Ehlin <eddiex@eddiex.se>2012-12-31 00:08:03 +0100
commita688c1566fe6a4eccc4ad5c5aaf5fadd79efef18 (patch)
treea0671a5773dec119ca5b13c97e6354320111e8e1 /iBean.old/iBean
parentf732bdde2a17539ae8a955eb948365c9d392c43a (diff)
downloadiBean-a688c1566fe6a4eccc4ad5c5aaf5fadd79efef18.tar.gz
iBean-a688c1566fe6a4eccc4ad5c5aaf5fadd79efef18.zip
Moved XCode project iBean to iBean.old
Diffstat (limited to 'iBean.old/iBean')
-rw-r--r--iBean.old/iBean/AppDelegate.h15
-rw-r--r--iBean.old/iBean/AppDelegate.m46
-rw-r--r--iBean.old/iBean/Default-568h@2x.pngbin0 -> 18594 bytes
-rw-r--r--iBean.old/iBean/Default.pngbin0 -> 6540 bytes
-rw-r--r--iBean.old/iBean/Default@2x.pngbin0 -> 16107 bytes
-rw-r--r--iBean.old/iBean/FirstViewController.h13
-rw-r--r--iBean.old/iBean/FirstViewController.m29
-rw-r--r--iBean.old/iBean/InstaBeanViewController.h32
-rw-r--r--iBean.old/iBean/InstaBeanViewController.m108
-rw-r--r--iBean.old/iBean/en.lproj/InfoPlist.strings2
-rw-r--r--iBean.old/iBean/en.lproj/MainStoryboard_iPad.storyboard138
-rw-r--r--iBean.old/iBean/en.lproj/MainStoryboard_iPhone.storyboard158
-rw-r--r--iBean.old/iBean/first.pngbin0 -> 253 bytes
-rw-r--r--iBean.old/iBean/first@2x.pngbin0 -> 402 bytes
-rw-r--r--iBean.old/iBean/iBean-Info.plist59
-rw-r--r--iBean.old/iBean/iBean-Prefix.pch15
-rw-r--r--iBean.old/iBean/main.m18
-rw-r--r--iBean.old/iBean/second.pngbin0 -> 128 bytes
-rw-r--r--iBean.old/iBean/second@2x.pngbin0 -> 130 bytes
19 files changed, 633 insertions, 0 deletions
diff --git a/iBean.old/iBean/AppDelegate.h b/iBean.old/iBean/AppDelegate.h
new file mode 100644
index 0000000..9fe045e
--- /dev/null
+++ b/iBean.old/iBean/AppDelegate.h
@@ -0,0 +1,15 @@
+//
+// AppDelegate.h
+// iBean
+//
+// Created by Eddie Ehlin on 2012-12-28.
+// Copyright (c) 2012 Eddie Ehlin. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
diff --git a/iBean.old/iBean/AppDelegate.m b/iBean.old/iBean/AppDelegate.m
new file mode 100644
index 0000000..a044a2c
--- /dev/null
+++ b/iBean.old/iBean/AppDelegate.m
@@ -0,0 +1,46 @@
+//
+// AppDelegate.m
+// iBean
+//
+// Created by Eddie Ehlin on 2012-12-28.
+// Copyright (c) 2012 Eddie Ehlin. All rights reserved.
+//
+
+#import "AppDelegate.h"
+
+@implementation AppDelegate
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ // Override point for customization after application launch.
+ return YES;
+}
+
+- (void)applicationWillResignActive:(UIApplication *)application
+{
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
+ // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
+}
+
+- (void)applicationDidEnterBackground:(UIApplication *)application
+{
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
+}
+
+- (void)applicationWillEnterForeground:(UIApplication *)application
+{
+ // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
+}
+
+- (void)applicationDidBecomeActive:(UIApplication *)application
+{
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+}
+
+- (void)applicationWillTerminate:(UIApplication *)application
+{
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
+}
+
+@end
diff --git a/iBean.old/iBean/Default-568h@2x.png b/iBean.old/iBean/Default-568h@2x.png
new file mode 100644
index 0000000..0891b7a
--- /dev/null
+++ b/iBean.old/iBean/Default-568h@2x.png
Binary files differ
diff --git a/iBean.old/iBean/Default.png b/iBean.old/iBean/Default.png
new file mode 100644
index 0000000..4c8ca6f
--- /dev/null
+++ b/iBean.old/iBean/Default.png
Binary files differ
diff --git a/iBean.old/iBean/Default@2x.png b/iBean.old/iBean/Default@2x.png
new file mode 100644
index 0000000..35b84cf
--- /dev/null
+++ b/iBean.old/iBean/Default@2x.png
Binary files differ
diff --git a/iBean.old/iBean/FirstViewController.h b/iBean.old/iBean/FirstViewController.h
new file mode 100644
index 0000000..a195d8a
--- /dev/null
+++ b/iBean.old/iBean/FirstViewController.h
@@ -0,0 +1,13 @@
+//
+// FirstViewController.h
+// iBean
+//
+// Created by Eddie Ehlin on 2012-12-28.
+// Copyright (c) 2012 Eddie Ehlin. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface FirstViewController : UIViewController
+
+@end
diff --git a/iBean.old/iBean/FirstViewController.m b/iBean.old/iBean/FirstViewController.m
new file mode 100644
index 0000000..8041fe7
--- /dev/null
+++ b/iBean.old/iBean/FirstViewController.m
@@ -0,0 +1,29 @@
+//
+// FirstViewController.m
+// iBean
+//
+// Created by Eddie Ehlin on 2012-12-28.
+// Copyright (c) 2012 Eddie Ehlin. All rights reserved.
+//
+
+#import "FirstViewController.h"
+
+@interface FirstViewController ()
+
+@end
+
+@implementation FirstViewController
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+ // Do any additional setup after loading the view, typically from a nib.
+}
+
+- (void)didReceiveMemoryWarning
+{
+ [super didReceiveMemoryWarning];
+ // Dispose of any resources that can be recreated.
+}
+
+@end
diff --git a/iBean.old/iBean/InstaBeanViewController.h b/iBean.old/iBean/InstaBeanViewController.h
new file mode 100644
index 0000000..3ddfe2b
--- /dev/null
+++ b/iBean.old/iBean/InstaBeanViewController.h
@@ -0,0 +1,32 @@
+//
+// InstaBeanViewController.h
+// iBean
+//
+// Created by Eddie Ehlin on 2012-12-28.
+// Copyright (c) 2012 Eddie Ehlin. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface InstaBeanViewController : UIViewController
+
+@property (weak, nonatomic) IBOutlet UILabel *extractionProgressLabel;
+@property (weak, nonatomic) IBOutlet UIStepper *extractionSettingStepper;
+@property (weak, nonatomic) IBOutlet UILabel *extractionSettingLabel;
+@property (weak, nonatomic) IBOutlet UIButton *extractionButton;
+
+@property (nonatomic) double extractionProgress;
+@property (nonatomic) BOOL extractionInProgress;
+@property (weak, nonatomic) NSTimer* timer;
+
+//Utility methods
+- (void) updateExtractionSettingLabel;
+- (void) initInstaBean;
+- (void) updateExtractionProgressLabel;
+- (void) haltExtractionTimer;
+
+//Event/signal based methods
+- (IBAction)setExtractionTimer:(id)sender;
+- (IBAction)startExtraction:(id)sender;
+
+@end
diff --git a/iBean.old/iBean/InstaBeanViewController.m b/iBean.old/iBean/InstaBeanViewController.m
new file mode 100644
index 0000000..ab77ed7
--- /dev/null
+++ b/iBean.old/iBean/InstaBeanViewController.m
@@ -0,0 +1,108 @@
+//
+// InstaBeanViewController.m
+// iBean
+//
+// Created by Eddie Ehlin on 2012-12-28.
+// Copyright (c) 2012 Eddie Ehlin. All rights reserved.
+//
+
+#import "InstaBeanViewController.h"
+
+@interface InstaBeanViewController ()
+
+@end
+
+@implementation InstaBeanViewController
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+
+ //Add any view related setup?
+}
+
+- (void)viewWillAppear:(BOOL)animated
+{
+ NSLog(@"InstaBean viewWillAppear");
+ //[super viewWillAppear:<#animated#>];
+ [self initInstaBean];
+}
+
+- (void)didReceiveMemoryWarning
+{
+ [super didReceiveMemoryWarning];
+ // Dispose of any resources that can be recreated.
+}
+
+
+//-------------------------------------------------------------------
+// UTILITY METHODS
+//-------------------------------------------------------------------
+- (void) updateExtractionSettingLabel {
+ NSString *timerSetting = [NSString stringWithFormat:@"%1.0f", [self.extractionSettingStepper value]];
+ self.extractionSettingLabel.text = timerSetting;
+}
+
+- (void) updateExtractionProgressLabel {
+ self.extractionProgress += 0.1f;
+ self.extractionProgressLabel.text = [NSString stringWithFormat:@"%1.1f", self.extractionProgress];
+
+ if (self.extractionProgress >= self.extractionSettingStepper.value)
+ {
+ NSLog(@"Timer reached its limit!");
+ [self haltExtractionTimer];
+ }
+}
+
+- (void) haltExtractionTimer
+{
+ if (self.timer != nil)
+ {
+ [self.timer invalidate];
+ self.timer = nil;
+ [self.extractionButton setTitle:@"Start extraction" forState:UIControlStateNormal];
+ self.extractionInProgress = NO;
+ [self.extractionSettingStepper setEnabled:YES];
+ }
+}
+
+//-------------------------------------------------------------------
+// ACTION METHODS
+//-------------------------------------------------------------------
+
+- (void) initInstaBean
+{
+ NSLog(@"Loading & setting stepper!");
+ //TODO: Read from storage..
+ [self.extractionSettingStepper setValue:25.0f];
+ [self updateExtractionSettingLabel];
+}
+
+- (IBAction)setExtractionTimer:(id)sender {
+ [self updateExtractionSettingLabel];
+}
+
+- (IBAction)startExtraction:(id)sender {
+
+ if (self.extractionInProgress == NO)
+ {
+ self.extractionInProgress = YES;
+ self.extractionProgress = 0.0f;
+ self.extractionProgressLabel.text = @"0.0";
+ [self.extractionButton setTitle:@"Stop extraction" forState:UIControlStateNormal];
+ [self.extractionSettingStepper setEnabled:NO];
+
+ if (self.timer == nil)
+ {
+ self.timer = [NSTimer scheduledTimerWithTimeInterval:0.1f target:self selector:@selector(updateExtractionProgressLabel) userInfo:nil repeats:YES];
+ }
+ //TODO: Set red background image.
+
+ }
+ else
+ {
+ //TODO: Set green background image.
+ [self haltExtractionTimer];
+ }
+}
+@end
diff --git a/iBean.old/iBean/en.lproj/InfoPlist.strings b/iBean.old/iBean/en.lproj/InfoPlist.strings
new file mode 100644
index 0000000..477b28f
--- /dev/null
+++ b/iBean.old/iBean/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
diff --git a/iBean.old/iBean/en.lproj/MainStoryboard_iPad.storyboard b/iBean.old/iBean/en.lproj/MainStoryboard_iPad.storyboard
new file mode 100644
index 0000000..de8ac9d
--- /dev/null
+++ b/iBean.old/iBean/en.lproj/MainStoryboard_iPad.storyboard
@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="2844" systemVersion="12C60" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" initialViewController="4">
+ <dependencies>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1930"/>
+ </dependencies>
+ <scenes>
+ <!--First View Controller - First-->
+ <scene sceneID="11">
+ <objects>
+ <viewController id="2" customClass="FirstViewController" sceneMemberID="viewController">
+ <view key="view" contentMode="scaleToFill" id="17">
+ <rect key="frame" x="0.0" y="20" width="768" height="955"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <subviews>
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" text="First View" textAlignment="center" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="18">
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ <fontDescription key="fontDescription" name="Helvetica" family="Helvetica" pointSize="36"/>
+ <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+ <nil key="highlightedColor"/>
+ </label>
+ <textView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" userInteractionEnabled="NO" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" delaysContentTouches="NO" canCancelContentTouches="NO" minimumZoomScale="0.0" maximumZoomScale="0.0" bouncesZoom="NO" editable="NO" text="Loaded by the First View Controller — an instance of FirstViewController — specified in the app delegate." textAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="19">
+ <constraints>
+ <constraint firstAttribute="width" constant="268" id="Ka6-KM-ccG"/>
+ <constraint firstAttribute="height" constant="70" id="WP3-kA-6dL"/>
+ </constraints>
+ <fontDescription key="fontDescription" type="system" size="system"/>
+ <textInputTraits key="textInputTraits"/>
+ </textView>
+ <toolbar opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="20">
+ <items/>
+ </toolbar>
+ </subviews>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ <constraints>
+ <constraint firstItem="20" firstAttribute="leading" secondItem="17" secondAttribute="leading" type="default" id="21X-Fc-h5m"/>
+ <constraint firstItem="20" firstAttribute="top" secondItem="17" secondAttribute="top" type="default" id="82v-FK-dPD"/>
+ <constraint firstItem="18" firstAttribute="leading" secondItem="17" secondAttribute="leading" constant="20" symbolic="YES" type="default" id="9xU-8S-4zl"/>
+ <constraint firstAttribute="trailing" secondItem="18" secondAttribute="trailing" constant="20" symbolic="YES" type="default" id="GbQ-Sy-14J"/>
+ <constraint firstItem="19" firstAttribute="centerX" secondItem="18" secondAttribute="centerX" type="default" id="b0V-hJ-9Xa"/>
+ <constraint firstItem="20" firstAttribute="trailing" secondItem="17" secondAttribute="trailing" type="default" id="i7B-V8-9lR"/>
+ <constraint firstItem="18" firstAttribute="top" secondItem="17" secondAttribute="top" constant="250" id="oEv-T3-Vih"/>
+ <constraint firstItem="19" firstAttribute="top" secondItem="17" secondAttribute="top" constant="350" id="pKg-gt-hVJ"/>
+ </constraints>
+ </view>
+ <tabBarItem key="tabBarItem" title="First" image="first" id="7"/>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="10" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="3041" y="150"/>
+ </scene>
+ <!--Insta Bean View Controller - Second-->
+ <scene sceneID="13">
+ <objects>
+ <viewController id="3" customClass="InstaBeanViewController" sceneMemberID="viewController">
+ <view key="view" contentMode="scaleToFill" id="16">
+ <rect key="frame" x="0.0" y="20" width="768" height="955"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <subviews>
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" text="Second View" textAlignment="center" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="21">
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+ <fontDescription key="fontDescription" name="Helvetica" family="Helvetica" pointSize="36"/>
+ <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+ <nil key="highlightedColor"/>
+ </label>
+ <textView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" userInteractionEnabled="NO" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" delaysContentTouches="NO" canCancelContentTouches="NO" minimumZoomScale="0.0" maximumZoomScale="0.0" bouncesZoom="NO" editable="NO" text="Loaded by the Second View Controller — an instance of SecondViewController — specified in the app delegate." textAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="22">
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+ <constraints>
+ <constraint firstAttribute="height" constant="70" id="39I-E8-1dg"/>
+ <constraint firstAttribute="width" constant="297" id="F6J-XU-KBh"/>
+ </constraints>
+ <fontDescription key="fontDescription" type="system" size="system"/>
+ <textInputTraits key="textInputTraits"/>
+ </textView>
+ <navigationBar opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="23">
+ <items>
+ <navigationItem id="24"/>
+ </items>
+ </navigationBar>
+ </subviews>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ <constraints>
+ <constraint firstItem="21" firstAttribute="leading" secondItem="16" secondAttribute="leading" constant="20" symbolic="YES" type="default" id="7D6-ef-UU9"/>
+ <constraint firstItem="22" firstAttribute="top" secondItem="16" secondAttribute="top" constant="350" id="Gbp-Dd-WCJ"/>
+ <constraint firstItem="22" firstAttribute="leading" secondItem="16" secondAttribute="leading" constant="235" id="Xcq-Zb-R4f"/>
+ <constraint firstItem="23" firstAttribute="top" secondItem="16" secondAttribute="top" type="default" id="YQd-P8-ET5"/>
+ <constraint firstItem="23" firstAttribute="trailing" secondItem="16" secondAttribute="trailing" type="default" id="eH6-Me-VTD"/>
+ <constraint firstItem="23" firstAttribute="leading" secondItem="16" secondAttribute="leading" type="default" id="kTD-uS-vbp"/>
+ <constraint firstItem="21" firstAttribute="top" secondItem="16" secondAttribute="top" constant="250" id="mE7-QV-f5n"/>
+ <constraint firstAttribute="trailing" secondItem="21" secondAttribute="trailing" constant="20" symbolic="YES" type="default" id="v87-JO-j7C"/>
+ </constraints>
+ </view>
+ <tabBarItem key="tabBarItem" title="Second" image="second" id="6"/>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="12" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="3042" y="1284"/>
+ </scene>
+ <!--Tab Bar Controller-->
+ <scene sceneID="15">
+ <objects>
+ <tabBarController id="4" sceneMemberID="viewController">
+ <nil key="simulatedBottomBarMetrics"/>
+ <tabBar key="tabBar" contentMode="scaleToFill" id="5">
+ <rect key="frame" x="0.0" y="975" width="768" height="49"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
+ <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+ </tabBar>
+ <connections>
+ <segue destination="2" kind="relationship" relationship="viewControllers" id="27"/>
+ <segue destination="3" kind="relationship" relationship="viewControllers" id="28"/>
+ </connections>
+ </tabBarController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="14" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="2023" y="718"/>
+ </scene>
+ </scenes>
+ <resources>
+ <image name="first" width="16" height="16"/>
+ <image name="second" width="16" height="16"/>
+ </resources>
+ <classes>
+ <class className="FirstViewController" superclassName="UIViewController">
+ <source key="sourceIdentifier" type="project" relativePath="./Classes/FirstViewController.h"/>
+ </class>
+ <class className="InstaBeanViewController" superclassName="UIViewController">
+ <source key="sourceIdentifier" type="project" relativePath="./Classes/InstaBeanViewController.h"/>
+ </class>
+ <class className="NSLayoutConstraint" superclassName="NSObject">
+ <source key="sourceIdentifier" type="project" relativePath="./Classes/NSLayoutConstraint.h"/>
+ </class>
+ </classes>
+ <simulatedMetricsContainer key="defaultSimulatedMetrics">
+ <simulatedStatusBarMetrics key="statusBar" statusBarStyle="blackTranslucent"/>
+ <simulatedOrientationMetrics key="orientation"/>
+ <simulatedScreenMetrics key="destination"/>
+ </simulatedMetricsContainer>
+</document> \ No newline at end of file
diff --git a/iBean.old/iBean/en.lproj/MainStoryboard_iPhone.storyboard b/iBean.old/iBean/en.lproj/MainStoryboard_iPhone.storyboard
new file mode 100644
index 0000000..a65aaa4
--- /dev/null
+++ b/iBean.old/iBean/en.lproj/MainStoryboard_iPhone.storyboard
@@ -0,0 +1,158 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="2844" systemVersion="12C60" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="4">
+ <dependencies>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1930"/>
+ </dependencies>
+ <scenes>
+ <!--First View Controller - First-->
+ <scene sceneID="11">
+ <objects>
+ <viewController title="First" id="2" customClass="FirstViewController" sceneMemberID="viewController">
+ <view key="view" contentMode="scaleToFill" id="16">
+ <rect key="frame" x="0.0" y="20" width="320" height="499"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <subviews>
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" text="First View" textAlignment="center" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="20">
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ <fontDescription key="fontDescription" name="Helvetica" family="Helvetica" pointSize="36"/>
+ <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+ <nil key="highlightedColor"/>
+ </label>
+ <textView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" userInteractionEnabled="NO" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" delaysContentTouches="NO" canCancelContentTouches="NO" minimumZoomScale="0.0" maximumZoomScale="0.0" bouncesZoom="NO" editable="NO" text="Loaded by the first view controller — an instance of FirstViewController — specified in the app delegate." textAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="21">
+ <constraints>
+ <constraint firstAttribute="height" constant="88" id="Ikv-jk-tyi"/>
+ </constraints>
+ <fontDescription key="fontDescription" type="system" size="system"/>
+ <textInputTraits key="textInputTraits"/>
+ </textView>
+ </subviews>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ <constraints>
+ <constraint firstAttribute="trailing" secondItem="21" secondAttribute="trailing" constant="20" symbolic="YES" type="default" id="QBg-X6-fBV"/>
+ <constraint firstAttribute="trailing" secondItem="20" secondAttribute="trailing" constant="20" symbolic="YES" type="default" id="Qxj-1L-2Yh"/>
+ <constraint firstItem="20" firstAttribute="leading" secondItem="16" secondAttribute="leading" constant="20" symbolic="YES" type="default" id="Ty9-wx-CyI"/>
+ <constraint firstItem="21" firstAttribute="leading" secondItem="16" secondAttribute="leading" constant="20" symbolic="YES" type="default" id="Zmm-k2-2L7"/>
+ <constraint firstItem="21" firstAttribute="top" secondItem="20" secondAttribute="bottom" constant="40" type="user" id="jX0-Wi-kmb"/>
+ <constraint firstAttribute="centerY" secondItem="21" secondAttribute="centerY" type="user" id="yWk-L2-m9F"/>
+ </constraints>
+ </view>
+ <tabBarItem key="tabBarItem" title="First" image="first" id="7"/>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="10" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="865" y="-358"/>
+ </scene>
+ <!--Insta Bean View Controller - Second-->
+ <scene sceneID="13">
+ <objects>
+ <viewController title="Second" id="3" customClass="InstaBeanViewController" sceneMemberID="viewController">
+ <view key="view" contentMode="scaleToFill" id="17">
+ <rect key="frame" x="0.0" y="20" width="320" height="499"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <subviews>
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" text="0.00" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CiC-m9-5rR">
+ <constraints>
+ <constraint firstAttribute="height" constant="102" id="gVA-cu-kfz"/>
+ </constraints>
+ <fontDescription key="fontDescription" type="system" pointSize="76"/>
+ <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+ <nil key="highlightedColor"/>
+ </label>
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ghy-eB-Fc0">
+ <fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
+ <state key="normal" title="Start extraction">
+ <color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
+ <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
+ </state>
+ <state key="highlighted">
+ <color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+ </state>
+ <connections>
+ <action selector="startExtraction:" destination="3" eventType="touchUpInside" id="kjW-U4-gbu"/>
+ </connections>
+ </button>
+ <stepper opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" value="25" minimumValue="1" maximumValue="60" translatesAutoresizingMaskIntoConstraints="NO" id="507-KX-F4S">
+ <connections>
+ <action selector="setExtractionTimer:" destination="3" eventType="valueChanged" id="zsr-5X-Pbz"/>
+ </connections>
+ </stepper>
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Fpj-yQ-Jhw">
+ <fontDescription key="fontDescription" type="system" pointSize="17"/>
+ <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
+ <nil key="highlightedColor"/>
+ </label>
+ </subviews>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+ <constraints>
+ <constraint firstItem="CiC-m9-5rR" firstAttribute="top" secondItem="17" secondAttribute="top" constant="20" symbolic="YES" type="default" id="06y-M2-rw2"/>
+ <constraint firstItem="Fpj-yQ-Jhw" firstAttribute="leading" secondItem="17" secondAttribute="leading" constant="44" id="19h-RC-Nah"/>
+ <constraint firstItem="507-KX-F4S" firstAttribute="top" secondItem="17" secondAttribute="top" constant="195" id="522-46-RaI"/>
+ <constraint firstAttribute="bottom" secondItem="ghy-eB-Fc0" secondAttribute="bottom" constant="89" id="SNh-xW-kDd"/>
+ <constraint firstAttribute="trailing" secondItem="507-KX-F4S" secondAttribute="trailing" constant="57" id="bIe-JJ-xvH"/>
+ <constraint firstItem="CiC-m9-5rR" firstAttribute="leading" secondItem="17" secondAttribute="leading" constant="20" symbolic="YES" type="default" id="f2w-yL-dYN"/>
+ <constraint firstAttribute="trailing" secondItem="CiC-m9-5rR" secondAttribute="trailing" constant="20" symbolic="YES" type="default" id="jt9-2B-vlF"/>
+ <constraint firstItem="ghy-eB-Fc0" firstAttribute="centerX" secondItem="CiC-m9-5rR" secondAttribute="centerX" type="default" id="qAx-gx-lyV"/>
+ <constraint firstItem="Fpj-yQ-Jhw" firstAttribute="centerY" secondItem="507-KX-F4S" secondAttribute="centerY" type="default" id="uct-q5-tbD"/>
+ </constraints>
+ </view>
+ <tabBarItem key="tabBarItem" title="Insta bean" image="second" id="6"/>
+ <connections>
+ <outlet property="extractionButton" destination="ghy-eB-Fc0" id="SPP-wT-uF3"/>
+ <outlet property="extractionProgressLabel" destination="CiC-m9-5rR" id="8Ca-UB-cZV"/>
+ <outlet property="extractionSettingLabel" destination="Fpj-yQ-Jhw" id="hhI-wZ-9Lc"/>
+ <outlet property="extractionSettingStepper" destination="507-KX-F4S" id="6Pt-3K-8eE"/>
+ </connections>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="12" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="653" y="498"/>
+ </scene>
+ <!--Tab Bar Controller-->
+ <scene sceneID="15">
+ <objects>
+ <tabBarController id="4" sceneMemberID="viewController">
+ <nil key="simulatedBottomBarMetrics"/>
+ <tabBar key="tabBar" contentMode="scaleToFill" id="5">
+ <rect key="frame" x="0.0" y="431" width="320" height="49"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
+ <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+ </tabBar>
+ <connections>
+ <segue destination="2" kind="relationship" relationship="viewControllers" id="26"/>
+ <segue destination="3" kind="relationship" relationship="viewControllers" id="27"/>
+ </connections>
+ </tabBarController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="14" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="132" y="180"/>
+ </scene>
+ </scenes>
+ <resources>
+ <image name="first" width="16" height="16"/>
+ <image name="second" width="16" height="16"/>
+ </resources>
+ <classes>
+ <class className="FirstViewController" superclassName="UIViewController">
+ <source key="sourceIdentifier" type="project" relativePath="./Classes/FirstViewController.h"/>
+ </class>
+ <class className="InstaBeanViewController" superclassName="UIViewController">
+ <source key="sourceIdentifier" type="project" relativePath="./Classes/InstaBeanViewController.h"/>
+ <relationships>
+ <relationship kind="action" name="setExtractionTimer:"/>
+ <relationship kind="action" name="startExtraction:"/>
+ <relationship kind="outlet" name="extractionButton" candidateClass="UIButton"/>
+ <relationship kind="outlet" name="extractionProgressLabel" candidateClass="UILabel"/>
+ <relationship kind="outlet" name="extractionSettingLabel" candidateClass="UILabel"/>
+ <relationship kind="outlet" name="extractionSettingStepper" candidateClass="UIStepper"/>
+ </relationships>
+ </class>
+ <class className="NSLayoutConstraint" superclassName="NSObject">
+ <source key="sourceIdentifier" type="project" relativePath="./Classes/NSLayoutConstraint.h"/>
+ </class>
+ </classes>
+ <simulatedMetricsContainer key="defaultSimulatedMetrics">
+ <simulatedStatusBarMetrics key="statusBar"/>
+ <simulatedOrientationMetrics key="orientation"/>
+ <simulatedScreenMetrics key="destination" type="retina4"/>
+ </simulatedMetricsContainer>
+</document> \ No newline at end of file
diff --git a/iBean.old/iBean/first.png b/iBean.old/iBean/first.png
new file mode 100644
index 0000000..9300ee2
--- /dev/null
+++ b/iBean.old/iBean/first.png
Binary files differ
diff --git a/iBean.old/iBean/first@2x.png b/iBean.old/iBean/first@2x.png
new file mode 100644
index 0000000..374d78e
--- /dev/null
+++ b/iBean.old/iBean/first@2x.png
Binary files differ
diff --git a/iBean.old/iBean/iBean-Info.plist b/iBean.old/iBean/iBean-Info.plist
new file mode 100644
index 0000000..9b890c5
--- /dev/null
+++ b/iBean.old/iBean/iBean-Info.plist
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>Eddie-Ehlin.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UIMainStoryboardFile</key>
+ <string>MainStoryboard_iPhone</string>
+ <key>UIMainStoryboardFile~ipad</key>
+ <string>MainStoryboard_iPad</string>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UIStatusBarTintParameters</key>
+ <dict>
+ <key>UINavigationBar</key>
+ <dict>
+ <key>Style</key>
+ <string>UIBarStyleDefault</string>
+ <key>Translucent</key>
+ <false/>
+ </dict>
+ </dict>
+ <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>
+</dict>
+</plist>
diff --git a/iBean.old/iBean/iBean-Prefix.pch b/iBean.old/iBean/iBean-Prefix.pch
new file mode 100644
index 0000000..1eb06ae
--- /dev/null
+++ b/iBean.old/iBean/iBean-Prefix.pch
@@ -0,0 +1,15 @@
+//
+// Prefix header for all source files of the 'iBean' target in the 'iBean' project
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_5_0
+#warning "This project uses features only available in iOS SDK 5.0 and later."
+#endif
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+ #import <Foundation/Foundation.h>
+ #import <CoreData/CoreData.h>
+#endif
diff --git a/iBean.old/iBean/main.m b/iBean.old/iBean/main.m
new file mode 100644
index 0000000..b0895ba
--- /dev/null
+++ b/iBean.old/iBean/main.m
@@ -0,0 +1,18 @@
+//
+// main.m
+// iBean
+//
+// Created by Eddie Ehlin on 2012-12-28.
+// Copyright (c) 2012 Eddie Ehlin. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+#import "AppDelegate.h"
+
+int main(int argc, char *argv[])
+{
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
+ }
+}
diff --git a/iBean.old/iBean/second.png b/iBean.old/iBean/second.png
new file mode 100644
index 0000000..1100b48
--- /dev/null
+++ b/iBean.old/iBean/second.png
Binary files differ
diff --git a/iBean.old/iBean/second@2x.png b/iBean.old/iBean/second@2x.png
new file mode 100644
index 0000000..368d38f
--- /dev/null
+++ b/iBean.old/iBean/second@2x.png
Binary files differ