Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mriddle committed Apr 28, 2016
1 parent 91908ae commit 8ee2a12
Show file tree
Hide file tree
Showing 6 changed files with 255 additions and 31 deletions.
7 changes: 6 additions & 1 deletion Checklists.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@
A81172CC1CD0660F00BA3196 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A81172CB1CD0660F00BA3196 /* Assets.xcassets */; };
A81172CF1CD0660F00BA3196 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A81172CD1CD0660F00BA3196 /* LaunchScreen.storyboard */; };
A81172D91CD0859800BA3196 /* ChecklistItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = A81172D81CD0859800BA3196 /* ChecklistItem.swift */; };
A8961D4F1CD19E87006AFAF4 /* ItemDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8961D4E1CD19E87006AFAF4 /* ItemDetailViewController.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
A81172C11CD0660E00BA3196 /* Checklists.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Checklists.app; sourceTree = BUILT_PRODUCTS_DIR; };
A81172C41CD0660E00BA3196 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
A81172C61CD0660E00BA3196 /* ChecklistViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChecklistViewController.swift; sourceTree = "<group>"; };
A81172C61CD0660E00BA3196 /* ChecklistViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = ChecklistViewController.swift; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
A81172C91CD0660E00BA3196 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
A81172CB1CD0660F00BA3196 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
A81172CE1CD0660F00BA3196 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
A81172D01CD0660F00BA3196 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
A81172D81CD0859800BA3196 /* ChecklistItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ChecklistItem.swift; sourceTree = "<group>"; };
A8961D4E1CD19E87006AFAF4 /* ItemDetailViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = ItemDetailViewController.swift; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -63,6 +65,7 @@
A81172CD1CD0660F00BA3196 /* LaunchScreen.storyboard */,
A81172D01CD0660F00BA3196 /* Info.plist */,
A81172D81CD0859800BA3196 /* ChecklistItem.swift */,
A8961D4E1CD19E87006AFAF4 /* ItemDetailViewController.swift */,
);
path = Checklists;
sourceTree = "<group>";
Expand Down Expand Up @@ -140,6 +143,7 @@
buildActionMask = 2147483647;
files = (
A81172C71CD0660E00BA3196 /* ChecklistViewController.swift in Sources */,
A8961D4F1CD19E87006AFAF4 /* ItemDetailViewController.swift in Sources */,
A81172D91CD0859800BA3196 /* ChecklistItem.swift in Sources */,
A81172C51CD0660E00BA3196 /* AppDelegate.swift in Sources */,
);
Expand Down Expand Up @@ -291,6 +295,7 @@
A81172D51CD0660F00BA3196 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,5 @@
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Checklists/ChecklistViewController.swift"
timestampString = "483433068.392792"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "37"
endingLineNumber = "37"
landmarkName = "tableView(_:cellForRowAtIndexPath:)"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
128 changes: 121 additions & 7 deletions Checklists/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="0EI-kG-L1l">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="s3y-T2-g0c">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
</dependencies>
<scenes>
<!--Checklist View Controller-->
<!--Checklists-->
<scene sceneID="VS5-Ai-0gM">
<objects>
<tableViewController id="0EI-kG-L1l" customClass="ChecklistViewController" customModule="Checklists" customModuleProvider="target" sceneMemberID="viewController">
Expand All @@ -14,32 +14,146 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" accessoryType="checkmark" indentationWidth="10" reuseIdentifier="ChecklistItem" id="pcY-ab-PJf">
<rect key="frame" x="0.0" y="28" width="600" height="44"/>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" accessoryType="detailDisclosureButton" indentationWidth="10" reuseIdentifier="ChecklistItem" id="pcY-ab-PJf">
<rect key="frame" x="0.0" y="92" width="600" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="pcY-ab-PJf" id="Yyu-oC-sqR">
<rect key="frame" x="0.0" y="0.0" width="561" height="43.5"/>
<rect key="frame" x="0.0" y="0.0" width="533" height="43"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" tag="1000" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7UG-qx-RTx">
<rect key="frame" x="8" y="11" width="553" height="21"/>
<rect key="frame" x="28" y="11" width="490" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" tag="1001" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pll-Dd-HIC">
<rect key="frame" x="9" y="6" width="13" height="27"/>
<fontDescription key="fontDescription" name="HelveticaNeue-Bold" family="Helvetica Neue" pointSize="22"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</tableViewCellContentView>
<connections>
<segue destination="d35-fu-ixk" kind="presentation" identifier="EditItem" trigger="accessoryAction" id="Nnf-pz-0PT"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="0EI-kG-L1l" id="tKA-1S-Rzv"/>
<outlet property="delegate" destination="0EI-kG-L1l" id="Ogo-Fc-Jim"/>
</connections>
</tableView>
<navigationItem key="navigationItem" title="Checklists" id="sOD-Qq-F4w">
<barButtonItem key="rightBarButtonItem" systemItem="add" id="ohf-8e-nXL">
<connections>
<segue destination="d35-fu-ixk" kind="presentation" identifier="AddItem" id="7MH-Zf-ncI"/>
</connections>
</barButtonItem>
</navigationItem>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="mBe-6g-oHr" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="169" y="603"/>
<point key="canvasLocation" x="182" y="923"/>
</scene>
<!--Add Item-->
<scene sceneID="s5E-0F-zFm">
<objects>
<tableViewController id="aBC-cr-znO" customClass="ItemDetailViewController" customModule="Checklists" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="grouped" separatorStyle="default" rowHeight="44" sectionHeaderHeight="18" sectionFooterHeight="18" id="AMX-6J-qkM">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
<sections>
<tableViewSection id="C2n-iL-8dR">
<cells>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" id="PHi-OB-N8v">
<rect key="frame" x="0.0" y="99" width="600" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="PHi-OB-N8v" id="1Oc-Ck-8tw">
<rect key="frame" x="0.0" y="0.0" width="600" height="43"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Name of the Item" textAlignment="natural" adjustsFontSizeToFit="NO" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="aWI-1R-gxa">
<rect key="frame" x="8" y="7" width="584" height="30"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences" returnKeyType="done" enablesReturnKeyAutomatically="YES"/>
<connections>
<action selector="done" destination="aBC-cr-znO" eventType="editingDidEndOnExit" id="tcm-qT-zAX"/>
<outlet property="delegate" destination="aBC-cr-znO" id="xBF-Ts-P03"/>
</connections>
</textField>
</subviews>
</tableViewCellContentView>
</tableViewCell>
</cells>
</tableViewSection>
</sections>
<connections>
<outlet property="dataSource" destination="aBC-cr-znO" id="cxi-IS-7DA"/>
<outlet property="delegate" destination="aBC-cr-znO" id="haK-XT-0rU"/>
</connections>
</tableView>
<navigationItem key="navigationItem" title="Add Item" id="y4C-YS-FKg">
<barButtonItem key="leftBarButtonItem" systemItem="cancel" id="JKd-tj-hf8">
<connections>
<action selector="cancel:" destination="aBC-cr-znO" id="WRJ-eq-mcR"/>
</connections>
</barButtonItem>
<barButtonItem key="rightBarButtonItem" enabled="NO" systemItem="done" id="wpi-Ha-khN">
<connections>
<action selector="done" destination="aBC-cr-znO" id="0NO-cR-AH6"/>
</connections>
</barButtonItem>
</navigationItem>
<connections>
<outlet property="doneBarButton" destination="wpi-Ha-khN" id="JaB-nU-0cL"/>
<outlet property="textField" destination="aWI-1R-gxa" id="T92-Ed-nt0"/>
</connections>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="AAL-Av-N4z" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="861" y="1634"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="0zI-Zw-Czb">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="s3y-T2-g0c" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="Jvn-Kc-Aeb">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="0EI-kG-L1l" kind="relationship" relationship="rootViewController" id="J1P-vA-EXl"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="fx2-OR-nQN" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="182" y="223"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="9WR-cb-PLh">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="d35-fu-ixk" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="HlC-VZ-Hcs">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="aBC-cr-znO" kind="relationship" relationship="rootViewController" id="cgy-qI-tc1"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="q9m-85-3yr" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="182" y="1634"/>
</scene>
</scenes>
<inferredMetricsTieBreakers>
<segue reference="Nnf-pz-0PT"/>
</inferredMetricsTieBreakers>
</document>
2 changes: 1 addition & 1 deletion Checklists/ChecklistItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation

class ChecklistItem {
class ChecklistItem: NSObject {
var text: String
var checked: Bool

Expand Down
Loading

0 comments on commit 8ee2a12

Please sign in to comment.