Skip to content

Commit

Permalink
adding skeleton screens to help understand workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaizel committed Dec 24, 2013
1 parent 7583b0a commit 55b08aa
Show file tree
Hide file tree
Showing 28 changed files with 764 additions and 65 deletions.
14 changes: 14 additions & 0 deletions PLALaCarteSummaryViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// PLALaCarteSummaryViewController.h
// Plate
//
// Created by emileleon on 12/24/13.
// Copyright (c) 2013 Plate SF. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface PLALaCarteSummaryViewController : UIViewController
- (IBAction)addToBasket:(id)sender;

@end
41 changes: 41 additions & 0 deletions PLALaCarteSummaryViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
// PLALaCarteSummaryViewController.m
// Plate
//
// Created by emileleon on 12/24/13.
// Copyright (c) 2013 Plate SF. All rights reserved.
//

#import "PLALaCarteSummaryViewController.h"

@interface PLALaCarteSummaryViewController ()

@end

@implementation PLALaCarteSummaryViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}

- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

- (IBAction)addToBasket:(id)sender {
[[self navigationController] popToRootViewControllerAnimated:YES];
}
@end
75 changes: 75 additions & 0 deletions PLALaCarteSummaryViewController.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="PLALaCarteSummaryViewController">
<connections>
<outlet property="view" destination="1" id="3"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="1">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="A La Carte Items" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="S0P-Z9-ghP">
<rect key="frame" x="20" y="20" width="129" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Beef Stroganoff: Qty 1" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZxU-yH-GdE">
<rect key="frame" x="20" y="100" width="171" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Ratatouille: Qty 1" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oN2-ap-ckg">
<rect key="frame" x="20" y="129" width="132" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Mains: $10" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pAv-J6-ryq">
<rect key="frame" x="20" y="71" width="85" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Sides: $4" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5As-xM-xQ9">
<rect key="frame" x="20" y="197" width="72" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Moroccan Cauliflower: Qty 2" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cih-Es-LJ8">
<rect key="frame" x="20" y="226" width="219" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Total: $28" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="plz-Ed-IR7">
<rect key="frame" x="20" y="290" width="75" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mkI-cy-yNW">
<rect key="frame" x="111" y="314" width="98" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="Add to Basket">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="addToBasket:" destination="-1" eventType="touchUpInside" id="cV0-xD-n85"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics"/>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
</view>
</objects>
</document>
15 changes: 15 additions & 0 deletions PLALaCarteViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// PLALaCarteViewController.h
// Plate
//
// Created by emileleon on 12/23/13.
// Copyright (c) 2013 Plate SF. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface PLALaCarteViewController : UIViewController
@property (weak, nonatomic) IBOutlet UITableView *alaCarteMains;
@property (weak, nonatomic) IBOutlet UITableView *alaCarteSides;

@end
95 changes: 95 additions & 0 deletions PLALaCarteViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
//
// PLALaCarteViewController.m
// Plate
//
// Created by emileleon on 12/23/13.
// Copyright (c) 2013 Plate SF. All rights reserved.
//

#import "PLALaCarteViewController.h"
#import "PLALaCarteSummaryViewController.h"

@interface PLALaCarteViewController ()

@end

@implementation PLALaCarteViewController

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"UITableViewCell"];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"UITableViewCell"];
}

cell.layer.borderWidth = 1.0f;
cell.layer.borderColor = [[UIColor blackColor] CGColor];
cell.layer.masksToBounds = YES;
cell.layer.cornerRadius = 12.0f;
cell.layer.backgroundColor = [[UIColor grayColor] CGColor];

if (tableView == [self alaCarteMains]) {
[[cell textLabel] setText:@"A La Carte Main Item"];
} else if (tableView == [self alaCarteSides]) {
[[cell textLabel] setText:@"A La Carte Side Item"];
}

return cell;

}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 3;
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 1;
}



- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}

- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
// Setup the bottom toolbar
UIBarButtonItem *flexibleSpaceLeft = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithTitle:@"Continue" style:UIBarButtonItemStylePlain target:self action:@selector(actionContinue:)];
[barButton setTitleTextAttributes:@{
NSFontAttributeName: [UIFont fontWithName:@"Helvetica" size:24.0],
NSForegroundColorAttributeName: [UIColor blackColor]
} forState:UIControlStateNormal];

self.toolbarItems = [NSArray arrayWithObjects: flexibleSpaceLeft, barButton, nil];

// Display the Continue button
self.navigationController.toolbarHidden = NO;

// We don't want extra space above tables for scrolling
self.automaticallyAdjustsScrollViewInsets = NO;
self.alaCarteSides.backgroundColor = [UIColor clearColor];
self.alaCarteMains.backgroundColor = [UIColor clearColor];
}

- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

- (IBAction)actionContinue:(id)sender {
[[self navigationController] pushViewController:[[PLALaCarteSummaryViewController alloc]init] animated:YES];
}

@end
62 changes: 62 additions & 0 deletions PLALaCarteViewController.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="PLALaCarteViewController">
<connections>
<outlet property="alaCarteMains" destination="TKP-iV-IK0" id="TI4-PX-RWo"/>
<outlet property="alaCarteSides" destination="tas-nm-peU" id="F6Z-VX-BnH"/>
<outlet property="view" destination="1" id="3"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="1">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="TKP-iV-IK0">
<rect key="frame" x="0.0" y="121" width="320" height="151"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<connections>
<outlet property="dataSource" destination="-1" id="KRT-OY-s2w"/>
<outlet property="delegate" destination="-1" id="jNB-up-aRE"/>
</connections>
</tableView>
<tableView clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="tas-nm-peU">
<rect key="frame" x="0.0" y="342" width="320" height="139"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<connections>
<outlet property="dataSource" destination="-1" id="i9B-I5-AMo"/>
<outlet property="delegate" destination="-1" id="8jZ-F5-s9l"/>
</connections>
</tableView>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Add A La Carte items" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="INJ-cJ-kDo">
<rect key="frame" x="20" y="40" width="164" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Mains $10" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rS9-m7-f2V">
<rect key="frame" x="20" y="92" width="80" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Sides $4" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kI5-qB-4Fp">
<rect key="frame" x="20" y="313" width="67" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics"/>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
</view>
</objects>
</document>
2 changes: 1 addition & 1 deletion PLSettingsViewController.h → PLAccountViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@

#import <UIKit/UIKit.h>

@interface PLSettingsViewController : UIViewController
@interface PLAccountViewController : UIViewController

@end
6 changes: 3 additions & 3 deletions PLSettingsViewController.m → PLAccountViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
// Copyright (c) 2013 Plate SF. All rights reserved.
//

#import "PLSettingsViewController.h"
#import "PLAccountViewController.h"

@interface PLSettingsViewController ()
@interface PLAccountViewController ()

@end

@implementation PLSettingsViewController
@implementation PLAccountViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
Expand Down
Loading

0 comments on commit 55b08aa

Please sign in to comment.