Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions HeadsUpper/HUTableViewCell.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// HUTableViewCell.h
// HeadsUpper
//
// Created by Varindra Hart on 2/21/16.
// Copyright © 2016 Michael Kavouras. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface HUTableViewCell : UITableViewCell

@property (nonatomic) HUCategory category;
@property (nonatomic) NSString *title;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

- (instancetype)initWithCategory:(HUCategory)category;

@end
25 changes: 25 additions & 0 deletions HeadsUpper/HUTableViewCell.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// HUTableViewCell.m
// HeadsUpper
//
// Created by Varindra Hart on 2/21/16.
// Copyright © 2016 Michael Kavouras. All rights reserved.
//

#import "HUTableViewCell.h"

@implementation HUTableViewCell

- (instancetype)initWithCategory:(HUCategory)category{

if (self = [super init]){
self.category = category;
return self;
}

return nil;
}



@end
37 changes: 37 additions & 0 deletions HeadsUpper/HUTableViewCell.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9059" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9049"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="100" id="KGk-i7-Jjw" customClass="HUTableViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="100"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="99"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Nms-Mm-Yrq">
<rect key="frame" x="16" y="16" width="288" height="67"/>
<fontDescription key="fontDescription" name="Futura-Medium" family="Futura" pointSize="30"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstItem="Nms-Mm-Yrq" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="7Kf-UK-vDA"/>
<constraint firstItem="Nms-Mm-Yrq" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="16" id="SjN-bX-WZd"/>
<constraint firstAttribute="trailing" secondItem="Nms-Mm-Yrq" secondAttribute="trailing" constant="16" id="fuw-Ph-ceb"/>
<constraint firstAttribute="bottom" secondItem="Nms-Mm-Yrq" secondAttribute="bottom" constant="16" id="z5j-zh-AJP"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="titleLabel" destination="Nms-Mm-Yrq" id="mgL-AU-B5I"/>
</connections>
<point key="canvasLocation" x="276" y="298"/>
</tableViewCell>
</objects>
</document>
115 changes: 108 additions & 7 deletions HeadsUpper/HeadsUpper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,60 @@
/* Begin PBXBuildFile section */
8D89695C1C755D0200D32E8A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 8D89695B1C755D0200D32E8A /* main.m */; };
8D89695F1C755D0200D32E8A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8D89695E1C755D0200D32E8A /* AppDelegate.m */; };
8D8969621C755D0200D32E8A /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8D8969611C755D0200D32E8A /* ViewController.m */; };
8D8969651C755D0200D32E8A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8D8969631C755D0200D32E8A /* Main.storyboard */; };
8D8969671C755D0200D32E8A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8D8969661C755D0200D32E8A /* Assets.xcassets */; };
8D89696A1C755D0200D32E8A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8D8969681C755D0200D32E8A /* LaunchScreen.storyboard */; };
C7A853FE1C7A50D500518AF8 /* UIColor+FadeColor.m in Sources */ = {isa = PBXBuildFile; fileRef = C7A853FD1C7A50D500518AF8 /* UIColor+FadeColor.m */; };
C7A854001C7A642200518AF8 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C7A853FF1C7A642200518AF8 /* CoreMotion.framework */; };
C7A854091C7A74C400518AF8 /* NSArray+Shuffle.m in Sources */ = {isa = PBXBuildFile; fileRef = C7A854081C7A74C400518AF8 /* NSArray+Shuffle.m */; };
C7DD0BA71C7A14F500361D17 /* HUTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD0BA51C7A14F500361D17 /* HUTableViewCell.m */; };
C7DD0BA81C7A14F500361D17 /* HUTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = C7DD0BA61C7A14F500361D17 /* HUTableViewCell.xib */; };
C7DD0BAB1C7A16FA00361D17 /* HUData.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD0BAA1C7A16FA00361D17 /* HUData.m */; };
C7DD0BB01C7A22D900361D17 /* HUTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD0BAF1C7A22D900361D17 /* HUTableViewController.m */; };
C7DD0BB31C7A23FE00361D17 /* HUCategoryGenerator.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD0BB21C7A23FE00361D17 /* HUCategoryGenerator.m */; };
C7DD0BB61C7A2CE100361D17 /* HUGameViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD0BB51C7A2CE100361D17 /* HUGameViewController.m */; };
C7DD0BB91C7A2E7600361D17 /* HUInstructionsView.m in Sources */ = {isa = PBXBuildFile; fileRef = C7DD0BB81C7A2E7600361D17 /* HUInstructionsView.m */; };
C7DD0BBB1C7A2E8300361D17 /* HUInstructionsView.xib in Resources */ = {isa = PBXBuildFile; fileRef = C7DD0BBA1C7A2E8300361D17 /* HUInstructionsView.xib */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
8D8969571C755D0200D32E8A /* HeadsUpper.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HeadsUpper.app; sourceTree = BUILT_PRODUCTS_DIR; };
8D89695B1C755D0200D32E8A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
8D89695D1C755D0200D32E8A /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
8D89695E1C755D0200D32E8A /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
8D8969601C755D0200D32E8A /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
8D8969611C755D0200D32E8A /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
8D8969641C755D0200D32E8A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
8D8969661C755D0200D32E8A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
8D8969691C755D0200D32E8A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
8D89696B1C755D0200D32E8A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
C7A853FC1C7A50D500518AF8 /* UIColor+FadeColor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIColor+FadeColor.h"; path = "../UIColor+FadeColor.h"; sourceTree = "<group>"; };
C7A853FD1C7A50D500518AF8 /* UIColor+FadeColor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIColor+FadeColor.m"; path = "../UIColor+FadeColor.m"; sourceTree = "<group>"; };
C7A853FF1C7A642200518AF8 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; };
C7A854071C7A74C400518AF8 /* NSArray+Shuffle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSArray+Shuffle.h"; sourceTree = "<group>"; };
C7A854081C7A74C400518AF8 /* NSArray+Shuffle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSArray+Shuffle.m"; sourceTree = "<group>"; };
C7DD0BA41C7A14F500361D17 /* HUTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HUTableViewCell.h; path = ../HUTableViewCell.h; sourceTree = "<group>"; };
C7DD0BA51C7A14F500361D17 /* HUTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = HUTableViewCell.m; path = ../HUTableViewCell.m; sourceTree = "<group>"; };
C7DD0BA61C7A14F500361D17 /* HUTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = HUTableViewCell.xib; path = ../HUTableViewCell.xib; sourceTree = "<group>"; };
C7DD0BA91C7A16FA00361D17 /* HUData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HUData.h; sourceTree = "<group>"; };
C7DD0BAA1C7A16FA00361D17 /* HUData.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HUData.m; sourceTree = "<group>"; };
C7DD0BAC1C7A1ADD00361D17 /* HUCategory.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HUCategory.h; sourceTree = "<group>"; };
C7DD0BAD1C7A1C6100361D17 /* HeadsUp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HeadsUp-Prefix.pch"; sourceTree = "<group>"; };
C7DD0BAE1C7A22D900361D17 /* HUTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HUTableViewController.h; sourceTree = "<group>"; };
C7DD0BAF1C7A22D900361D17 /* HUTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HUTableViewController.m; sourceTree = "<group>"; };
C7DD0BB11C7A23FE00361D17 /* HUCategoryGenerator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HUCategoryGenerator.h; sourceTree = "<group>"; };
C7DD0BB21C7A23FE00361D17 /* HUCategoryGenerator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HUCategoryGenerator.m; sourceTree = "<group>"; };
C7DD0BB41C7A2CE100361D17 /* HUGameViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HUGameViewController.h; sourceTree = "<group>"; };
C7DD0BB51C7A2CE100361D17 /* HUGameViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HUGameViewController.m; sourceTree = "<group>"; };
C7DD0BB71C7A2E7600361D17 /* HUInstructionsView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HUInstructionsView.h; sourceTree = "<group>"; };
C7DD0BB81C7A2E7600361D17 /* HUInstructionsView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HUInstructionsView.m; sourceTree = "<group>"; };
C7DD0BBA1C7A2E8300361D17 /* HUInstructionsView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = HUInstructionsView.xib; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
8D8969541C755D0200D32E8A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
C7A854001C7A642200518AF8 /* CoreMotion.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -42,6 +72,7 @@
8D89694E1C755D0200D32E8A = {
isa = PBXGroup;
children = (
C7A853FF1C7A642200518AF8 /* CoreMotion.framework */,
8D8969591C755D0200D32E8A /* HeadsUpper */,
8D8969581C755D0200D32E8A /* Products */,
);
Expand All @@ -58,11 +89,15 @@
8D8969591C755D0200D32E8A /* HeadsUpper */ = {
isa = PBXGroup;
children = (
C7A854051C7A73BD00518AF8 /* Enums */,
C7A854041C7A73A500518AF8 /* Categories */,
C7A854021C7A733500518AF8 /* Controllers */,
C7A854011C7A732200518AF8 /* Model */,
C7A854031C7A735C00518AF8 /* xibs */,
8D8969631C755D0200D32E8A /* Main.storyboard */,
8D89695D1C755D0200D32E8A /* AppDelegate.h */,
8D89695E1C755D0200D32E8A /* AppDelegate.m */,
8D8969601C755D0200D32E8A /* ViewController.h */,
8D8969611C755D0200D32E8A /* ViewController.m */,
8D8969631C755D0200D32E8A /* Main.storyboard */,
C7DD0BAD1C7A1C6100361D17 /* HeadsUp-Prefix.pch */,
8D8969661C755D0200D32E8A /* Assets.xcassets */,
8D8969681C755D0200D32E8A /* LaunchScreen.storyboard */,
8D89696B1C755D0200D32E8A /* Info.plist */,
Expand All @@ -79,6 +114,60 @@
name = "Supporting Files";
sourceTree = "<group>";
};
C7A854011C7A732200518AF8 /* Model */ = {
isa = PBXGroup;
children = (
C7DD0BA91C7A16FA00361D17 /* HUData.h */,
C7DD0BAA1C7A16FA00361D17 /* HUData.m */,
);
name = Model;
sourceTree = "<group>";
};
C7A854021C7A733500518AF8 /* Controllers */ = {
isa = PBXGroup;
children = (
C7DD0BAE1C7A22D900361D17 /* HUTableViewController.h */,
C7DD0BAF1C7A22D900361D17 /* HUTableViewController.m */,
C7DD0BB41C7A2CE100361D17 /* HUGameViewController.h */,
C7DD0BB51C7A2CE100361D17 /* HUGameViewController.m */,
);
name = Controllers;
sourceTree = "<group>";
};
C7A854031C7A735C00518AF8 /* xibs */ = {
isa = PBXGroup;
children = (
C7DD0BB71C7A2E7600361D17 /* HUInstructionsView.h */,
C7DD0BB81C7A2E7600361D17 /* HUInstructionsView.m */,
C7DD0BBA1C7A2E8300361D17 /* HUInstructionsView.xib */,
C7DD0BA61C7A14F500361D17 /* HUTableViewCell.xib */,
C7DD0BA41C7A14F500361D17 /* HUTableViewCell.h */,
C7DD0BA51C7A14F500361D17 /* HUTableViewCell.m */,
);
name = xibs;
sourceTree = "<group>";
};
C7A854041C7A73A500518AF8 /* Categories */ = {
isa = PBXGroup;
children = (
C7A853FC1C7A50D500518AF8 /* UIColor+FadeColor.h */,
C7A853FD1C7A50D500518AF8 /* UIColor+FadeColor.m */,
C7A854071C7A74C400518AF8 /* NSArray+Shuffle.h */,
C7A854081C7A74C400518AF8 /* NSArray+Shuffle.m */,
);
name = Categories;
sourceTree = "<group>";
};
C7A854051C7A73BD00518AF8 /* Enums */ = {
isa = PBXGroup;
children = (
C7DD0BAC1C7A1ADD00361D17 /* HUCategory.h */,
C7DD0BB11C7A23FE00361D17 /* HUCategoryGenerator.h */,
C7DD0BB21C7A23FE00361D17 /* HUCategoryGenerator.m */,
);
name = Enums;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -136,6 +225,8 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
C7DD0BA81C7A14F500361D17 /* HUTableViewCell.xib in Resources */,
C7DD0BBB1C7A2E8300361D17 /* HUInstructionsView.xib in Resources */,
8D89696A1C755D0200D32E8A /* LaunchScreen.storyboard in Resources */,
8D8969671C755D0200D32E8A /* Assets.xcassets in Resources */,
8D8969651C755D0200D32E8A /* Main.storyboard in Resources */,
Expand All @@ -149,8 +240,15 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
8D8969621C755D0200D32E8A /* ViewController.m in Sources */,
C7DD0BA71C7A14F500361D17 /* HUTableViewCell.m in Sources */,
8D89695F1C755D0200D32E8A /* AppDelegate.m in Sources */,
C7A854091C7A74C400518AF8 /* NSArray+Shuffle.m in Sources */,
C7DD0BAB1C7A16FA00361D17 /* HUData.m in Sources */,
C7DD0BB61C7A2CE100361D17 /* HUGameViewController.m in Sources */,
C7DD0BB91C7A2E7600361D17 /* HUInstructionsView.m in Sources */,
C7A853FE1C7A50D500518AF8 /* UIColor+FadeColor.m in Sources */,
C7DD0BB01C7A22D900361D17 /* HUTableViewController.m in Sources */,
C7DD0BB31C7A23FE00361D17 /* HUCategoryGenerator.m in Sources */,
8D89695C1C755D0200D32E8A /* main.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -203,6 +301,7 @@
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREFIX_HEADER = "HeadsUpper/HeadsUp-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
Expand Down Expand Up @@ -244,6 +343,7 @@
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREFIX_HEADER = "HeadsUpper/HeadsUp-Prefix.pch";
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
Expand Down Expand Up @@ -300,6 +400,7 @@
8D8969701C755D0200D32E8A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
Loading