Skip to content

Commit 27d9884

Browse files
committed
Initial Commit
0 parents  commit 27d9884

File tree

20 files changed

+1159
-0
lines changed

20 files changed

+1159
-0
lines changed

example.xcodeproj/project.pbxproj

Lines changed: 481 additions & 0 deletions
Large diffs are not rendered by default.

example.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0500"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "BBAC240618102E5800091DA8"
18+
BuildableName = "example.app"
19+
BlueprintName = "example"
20+
ReferencedContainer = "container:example.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
27+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
28+
shouldUseLaunchSchemeArgsEnv = "YES"
29+
buildConfiguration = "Debug">
30+
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "BBAC242A18102E5800091DA8"
36+
BuildableName = "exampleTests.xctest"
37+
BlueprintName = "exampleTests"
38+
ReferencedContainer = "container:example.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
</Testables>
42+
<MacroExpansion>
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "BBAC240618102E5800091DA8"
46+
BuildableName = "example.app"
47+
BlueprintName = "example"
48+
ReferencedContainer = "container:example.xcodeproj">
49+
</BuildableReference>
50+
</MacroExpansion>
51+
</TestAction>
52+
<LaunchAction
53+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
54+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
55+
launchStyle = "0"
56+
useCustomWorkingDirectory = "NO"
57+
buildConfiguration = "Debug"
58+
ignoresPersistentStateOnLaunch = "NO"
59+
debugDocumentVersioning = "YES"
60+
allowLocationSimulation = "YES">
61+
<BuildableProductRunnable>
62+
<BuildableReference
63+
BuildableIdentifier = "primary"
64+
BlueprintIdentifier = "BBAC240618102E5800091DA8"
65+
BuildableName = "example.app"
66+
BlueprintName = "example"
67+
ReferencedContainer = "container:example.xcodeproj">
68+
</BuildableReference>
69+
</BuildableProductRunnable>
70+
<AdditionalOptions>
71+
</AdditionalOptions>
72+
</LaunchAction>
73+
<ProfileAction
74+
shouldUseLaunchSchemeArgsEnv = "YES"
75+
savedToolIdentifier = ""
76+
useCustomWorkingDirectory = "NO"
77+
buildConfiguration = "Release"
78+
debugDocumentVersioning = "YES">
79+
<BuildableProductRunnable>
80+
<BuildableReference
81+
BuildableIdentifier = "primary"
82+
BlueprintIdentifier = "BBAC240618102E5800091DA8"
83+
BuildableName = "example.app"
84+
BlueprintName = "example"
85+
ReferencedContainer = "container:example.xcodeproj">
86+
</BuildableReference>
87+
</BuildableProductRunnable>
88+
</ProfileAction>
89+
<AnalyzeAction
90+
buildConfiguration = "Debug">
91+
</AnalyzeAction>
92+
<ArchiveAction
93+
buildConfiguration = "Release"
94+
revealArchiveInOrganizer = "YES">
95+
</ArchiveAction>
96+
</Scheme>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>example.xcscheme</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>BBAC240618102E5800091DA8</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
<key>BBAC242A18102E5800091DA8</key>
21+
<dict>
22+
<key>primary</key>
23+
<true/>
24+
</dict>
25+
</dict>
26+
</dict>
27+
</plist>

example/AppDelegate.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// AppDelegate.h
3+
// example
4+
//
5+
// Created by Matthew Seeley on 10/17/13.
6+
// Copyright (c) 2013 GeLo Inc. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
12+
13+
@property (strong, nonatomic) UIWindow *window;
14+
15+
@end

example/AppDelegate.m

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
//
2+
// AppDelegate.m
3+
// example
4+
//
5+
// Created by Matthew Seeley on 10/17/13.
6+
// Copyright (c) 2013 GeLo Inc. All rights reserved.
7+
//
8+
9+
#import "AppDelegate.h"
10+
11+
@implementation AppDelegate
12+
13+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
14+
{
15+
// Override point for customization after application launch.
16+
return YES;
17+
}
18+
19+
- (void)applicationWillResignActive:(UIApplication *)application
20+
{
21+
// 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.
22+
// 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.
23+
}
24+
25+
- (void)applicationDidEnterBackground:(UIApplication *)application
26+
{
27+
// 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.
28+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
29+
}
30+
31+
- (void)applicationWillEnterForeground:(UIApplication *)application
32+
{
33+
// 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.
34+
}
35+
36+
- (void)applicationDidBecomeActive:(UIApplication *)application
37+
{
38+
// 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.
39+
}
40+
41+
- (void)applicationWillTerminate:(UIApplication *)application
42+
{
43+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
44+
}
45+
46+
@end

example/Base.lproj/Main.storyboard

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4451" systemVersion="13A461" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="rS3-R9-Ivy">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3676"/>
5+
</dependencies>
6+
<scenes>
7+
<!--Navigation Controller-->
8+
<scene sceneID="cUi-kZ-frf">
9+
<objects>
10+
<navigationController id="rS3-R9-Ivy" sceneMemberID="viewController">
11+
<navigationBar key="navigationBar" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" id="yXu-0R-QUA">
12+
<autoresizingMask key="autoresizingMask"/>
13+
</navigationBar>
14+
<connections>
15+
<segue destination="pGg-6v-bdr" kind="relationship" relationship="rootViewController" id="RxB-wf-QIq"/>
16+
</connections>
17+
</navigationController>
18+
<placeholder placeholderIdentifier="IBFirstResponder" id="eq9-QA-ai8" sceneMemberID="firstResponder"/>
19+
</objects>
20+
<point key="canvasLocation" x="-1" y="64"/>
21+
</scene>
22+
<!--class Prefix:identifier Master View Controller - Master-->
23+
<scene sceneID="VgW-fR-Quf">
24+
<objects>
25+
<tableViewController title="Master" id="pGg-6v-bdr" customClass="MasterViewController" sceneMemberID="viewController">
26+
<tableView key="view" opaque="NO" clipsSubviews="YES" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="mLL-gJ-YKr">
27+
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
28+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
29+
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
30+
<prototypes>
31+
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Cell" textLabel="2pz-XF-uhl" style="IBUITableViewCellStyleDefault" id="m0d-ak-lc9">
32+
<rect key="frame" x="0.0" y="86" width="320" height="44"/>
33+
<autoresizingMask key="autoresizingMask"/>
34+
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
35+
<rect key="frame" x="0.0" y="0.0" width="287" height="43"/>
36+
<autoresizingMask key="autoresizingMask"/>
37+
<subviews>
38+
<label opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" text="Title" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="2pz-XF-uhl">
39+
<rect key="frame" x="15" y="0.0" width="270" height="43"/>
40+
<autoresizingMask key="autoresizingMask"/>
41+
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
42+
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
43+
<color key="highlightedColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
44+
</label>
45+
</subviews>
46+
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
47+
</view>
48+
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
49+
<connections>
50+
<segue destination="Ah7-4n-0Wa" kind="push" identifier="showDetail" id="jUr-3t-vfg"/>
51+
</connections>
52+
</tableViewCell>
53+
</prototypes>
54+
<sections/>
55+
<connections>
56+
<outlet property="dataSource" destination="pGg-6v-bdr" id="P41-gY-KXY"/>
57+
<outlet property="delegate" destination="pGg-6v-bdr" id="Y6K-Cp-Qkv"/>
58+
</connections>
59+
</tableView>
60+
<navigationItem key="navigationItem" title="Master" id="tQt-TN-PWz"/>
61+
</tableViewController>
62+
<placeholder placeholderIdentifier="IBFirstResponder" id="6Cn-md-YlS" sceneMemberID="firstResponder"/>
63+
</objects>
64+
<point key="canvasLocation" x="459" y="64"/>
65+
</scene>
66+
<!--class Prefix:identifier Detail View Controller - Detail-->
67+
<scene sceneID="Cn3-H9-jdl">
68+
<objects>
69+
<viewController title="Detail" id="Ah7-4n-0Wa" customClass="DetailViewController" sceneMemberID="viewController">
70+
<view key="view" contentMode="scaleToFill" id="MMQ-IT-qOo">
71+
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
72+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
73+
<subviews>
74+
<label clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" text="Detail view content goes here" textAlignment="center" lineBreakMode="tailTruncation" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="Lei-5M-9Gs">
75+
<rect key="frame" x="20" y="276" width="280" height="17"/>
76+
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
77+
<fontDescription key="fontDescription" type="system" size="system"/>
78+
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
79+
<nil key="highlightedColor"/>
80+
</label>
81+
</subviews>
82+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
83+
<constraints>
84+
<constraint firstItem="Lei-5M-9Gs" firstAttribute="leading" secondItem="MMQ-IT-qOo" secondAttribute="leading" constant="20" symbolic="YES" id="62x-JV-TTJ"/>
85+
<constraint firstItem="Lei-5M-9Gs" firstAttribute="centerY" secondItem="MMQ-IT-qOo" secondAttribute="centerY" id="JzS-HC-Rnl"/>
86+
<constraint firstAttribute="trailing" secondItem="Lei-5M-9Gs" secondAttribute="trailing" constant="20" symbolic="YES" id="pXB-RP-Zz6"/>
87+
</constraints>
88+
</view>
89+
<navigationItem key="navigationItem" title="Detail" id="cra-N8-TIN"/>
90+
<connections>
91+
<outlet property="detailDescriptionLabel" destination="Lei-5M-9Gs" id="sCT-F7-F6f"/>
92+
</connections>
93+
</viewController>
94+
<placeholder placeholderIdentifier="IBFirstResponder" id="lrm-kH-fPn" sceneMemberID="firstResponder"/>
95+
</objects>
96+
<point key="canvasLocation" x="902" y="64"/>
97+
</scene>
98+
</scenes>
99+
<simulatedMetricsContainer key="defaultSimulatedMetrics">
100+
<simulatedStatusBarMetrics key="statusBar"/>
101+
<simulatedOrientationMetrics key="orientation"/>
102+
<simulatedScreenMetrics key="destination" type="retina4"/>
103+
</simulatedMetricsContainer>
104+
</document>

example/DetailViewController.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// DetailViewController.h
3+
// example
4+
//
5+
// Created by Matthew Seeley on 10/17/13.
6+
// Copyright (c) 2013 GeLo Inc. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface DetailViewController : UIViewController
12+
13+
@property (strong, nonatomic) id detailItem;
14+
15+
@property (weak, nonatomic) IBOutlet UILabel *detailDescriptionLabel;
16+
@end

example/DetailViewController.m

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
//
2+
// DetailViewController.m
3+
// example
4+
//
5+
// Created by Matthew Seeley on 10/17/13.
6+
// Copyright (c) 2013 GeLo Inc. All rights reserved.
7+
//
8+
9+
#import "DetailViewController.h"
10+
11+
@interface DetailViewController ()
12+
- (void)configureView;
13+
@end
14+
15+
@implementation DetailViewController
16+
17+
#pragma mark - Managing the detail item
18+
19+
- (void)setDetailItem:(id)newDetailItem
20+
{
21+
if (_detailItem != newDetailItem) {
22+
_detailItem = newDetailItem;
23+
24+
// Update the view.
25+
[self configureView];
26+
}
27+
}
28+
29+
- (void)configureView
30+
{
31+
// Update the user interface for the detail item.
32+
33+
if (self.detailItem) {
34+
self.detailDescriptionLabel.text = [self.detailItem description];
35+
}
36+
}
37+
38+
- (void)viewDidLoad
39+
{
40+
[super viewDidLoad];
41+
// Do any additional setup after loading the view, typically from a nib.
42+
[self configureView];
43+
}
44+
45+
- (void)didReceiveMemoryWarning
46+
{
47+
[super didReceiveMemoryWarning];
48+
// Dispose of any resources that can be recreated.
49+
}
50+
51+
@end
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "29x29",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "40x40",
11+
"scale" : "2x"
12+
},
13+
{
14+
"idiom" : "iphone",
15+
"size" : "60x60",
16+
"scale" : "2x"
17+
}
18+
],
19+
"info" : {
20+
"version" : 1,
21+
"author" : "xcode"
22+
}
23+
}

0 commit comments

Comments
 (0)