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
Binary file added .DS_Store
Binary file not shown.
Binary file added HeadsUpper/.DS_Store
Binary file not shown.
142 changes: 140 additions & 2 deletions HeadsUpper/HeadsUpper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
objects = {

/* Begin PBXBuildFile section */
3D7C660134A42AF35610698A /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B834E4800B5EFF73D10418B7 /* libPods.a */; };
845652141C7A1B18006B2610 /* APIManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 845652131C7A1B18006B2610 /* APIManager.m */; };
845652171C7A47E9006B2610 /* ZoomInOutAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = 845652161C7A47E9006B2610 /* ZoomInOutAnimation.m */; };
8456521B1C7A4AC0006B2610 /* CategoriesTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 845652191C7A4AC0006B2610 /* CategoriesTableViewCell.m */; };
8456521C1C7A4AC0006B2610 /* CategoriesTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8456521A1C7A4AC0006B2610 /* CategoriesTableViewCell.xib */; };
84DEAD041C7A17FA00371643 /* GameViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 84DEAD031C7A17FA00371643 /* GameViewController.m */; };
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 */; };
Expand All @@ -16,6 +22,16 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
19E83DABFE5E97970FAF704C /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
845652121C7A1B18006B2610 /* APIManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = APIManager.h; sourceTree = "<group>"; };
845652131C7A1B18006B2610 /* APIManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = APIManager.m; sourceTree = "<group>"; };
845652151C7A47E9006B2610 /* ZoomInOutAnimation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZoomInOutAnimation.h; sourceTree = "<group>"; };
845652161C7A47E9006B2610 /* ZoomInOutAnimation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZoomInOutAnimation.m; sourceTree = "<group>"; };
845652181C7A4AC0006B2610 /* CategoriesTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CategoriesTableViewCell.h; sourceTree = "<group>"; };
845652191C7A4AC0006B2610 /* CategoriesTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CategoriesTableViewCell.m; sourceTree = "<group>"; };
8456521A1C7A4AC0006B2610 /* CategoriesTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CategoriesTableViewCell.xib; sourceTree = "<group>"; };
84DEAD021C7A17FA00371643 /* GameViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GameViewController.h; sourceTree = "<group>"; };
84DEAD031C7A17FA00371643 /* GameViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GameViewController.m; sourceTree = "<group>"; };
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>"; };
Expand All @@ -26,24 +42,83 @@
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>"; };
93E396DA374615E447C26CA5 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
B834E4800B5EFF73D10418B7 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
8D8969541C755D0200D32E8A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
3D7C660134A42AF35610698A /* libPods.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
61A28D0227F648619D4729B5 /* Frameworks */ = {
isa = PBXGroup;
children = (
B834E4800B5EFF73D10418B7 /* libPods.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
7C5F9B1E11C10611397655AC /* Pods */ = {
isa = PBXGroup;
children = (
19E83DABFE5E97970FAF704C /* Pods.debug.xcconfig */,
93E396DA374615E447C26CA5 /* Pods.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
8456521D1C7A4AC8006B2610 /* API Manager */ = {
isa = PBXGroup;
children = (
845652121C7A1B18006B2610 /* APIManager.h */,
845652131C7A1B18006B2610 /* APIManager.m */,
);
name = "API Manager";
sourceTree = "<group>";
};
8456521E1C7A4AD8006B2610 /* Cells */ = {
isa = PBXGroup;
children = (
845652181C7A4AC0006B2610 /* CategoriesTableViewCell.h */,
845652191C7A4AC0006B2610 /* CategoriesTableViewCell.m */,
8456521A1C7A4AC0006B2610 /* CategoriesTableViewCell.xib */,
);
name = Cells;
sourceTree = "<group>";
};
8456521F1C7A4AEB006B2610 /* TableView */ = {
isa = PBXGroup;
children = (
8D8969601C755D0200D32E8A /* ViewController.h */,
8D8969611C755D0200D32E8A /* ViewController.m */,
);
name = TableView;
sourceTree = "<group>";
};
845652201C7A4AFF006B2610 /* Game */ = {
isa = PBXGroup;
children = (
84DEAD021C7A17FA00371643 /* GameViewController.h */,
84DEAD031C7A17FA00371643 /* GameViewController.m */,
);
name = Game;
sourceTree = "<group>";
};
8D89694E1C755D0200D32E8A = {
isa = PBXGroup;
children = (
8D8969591C755D0200D32E8A /* HeadsUpper */,
8D8969581C755D0200D32E8A /* Products */,
7C5F9B1E11C10611397655AC /* Pods */,
61A28D0227F648619D4729B5 /* Frameworks */,
);
sourceTree = "<group>";
};
Expand All @@ -60,9 +135,13 @@
children = (
8D89695D1C755D0200D32E8A /* AppDelegate.h */,
8D89695E1C755D0200D32E8A /* AppDelegate.m */,
8D8969601C755D0200D32E8A /* ViewController.h */,
8D8969611C755D0200D32E8A /* ViewController.m */,
8456521D1C7A4AC8006B2610 /* API Manager */,
8456521F1C7A4AEB006B2610 /* TableView */,
8456521E1C7A4AD8006B2610 /* Cells */,
845652201C7A4AFF006B2610 /* Game */,
8D8969631C755D0200D32E8A /* Main.storyboard */,
845652151C7A47E9006B2610 /* ZoomInOutAnimation.h */,
845652161C7A47E9006B2610 /* ZoomInOutAnimation.m */,
8D8969661C755D0200D32E8A /* Assets.xcassets */,
8D8969681C755D0200D32E8A /* LaunchScreen.storyboard */,
8D89696B1C755D0200D32E8A /* Info.plist */,
Expand All @@ -86,9 +165,12 @@
isa = PBXNativeTarget;
buildConfigurationList = 8D89696E1C755D0200D32E8A /* Build configuration list for PBXNativeTarget "HeadsUpper" */;
buildPhases = (
D9B0E5BD862D78358F5DED02 /* Check Pods Manifest.lock */,
8D8969531C755D0200D32E8A /* Sources */,
8D8969541C755D0200D32E8A /* Frameworks */,
8D8969551C755D0200D32E8A /* Resources */,
8FD6A2630280C7F976E41B69 /* Embed Pods Frameworks */,
A4B8B08A3668D00867EEE4F9 /* Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -137,21 +219,74 @@
buildActionMask = 2147483647;
files = (
8D89696A1C755D0200D32E8A /* LaunchScreen.storyboard in Resources */,
8456521C1C7A4AC0006B2610 /* CategoriesTableViewCell.xib in Resources */,
8D8969671C755D0200D32E8A /* Assets.xcassets in Resources */,
8D8969651C755D0200D32E8A /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
8FD6A2630280C7F976E41B69 /* Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
A4B8B08A3668D00867EEE4F9 /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
showEnvVarsInLog = 0;
};
D9B0E5BD862D78358F5DED02 /* Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
8D8969531C755D0200D32E8A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
84DEAD041C7A17FA00371643 /* GameViewController.m in Sources */,
8D8969621C755D0200D32E8A /* ViewController.m in Sources */,
8456521B1C7A4AC0006B2610 /* CategoriesTableViewCell.m in Sources */,
8D89695F1C755D0200D32E8A /* AppDelegate.m in Sources */,
8D89695C1C755D0200D32E8A /* main.m in Sources */,
845652141C7A1B18006B2610 /* APIManager.m in Sources */,
845652171C7A47E9006B2610 /* ZoomInOutAnimation.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -259,6 +394,7 @@
};
8D89696F1C755D0200D32E8A /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 19E83DABFE5E97970FAF704C /* Pods.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = HeadsUpper/Info.plist;
Expand All @@ -271,6 +407,7 @@
};
8D8969701C755D0200D32E8A /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 93E396DA374615E447C26CA5 /* Pods.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = HeadsUpper/Info.plist;
Expand Down Expand Up @@ -300,6 +437,7 @@
8D8969701C755D0200D32E8A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
10 changes: 10 additions & 0 deletions HeadsUpper/HeadsUpper.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions HeadsUpper/HeadsUpper/APIManager.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// APIManager.h
// HeadsUpper
//
// Created by Diana Elezaj on 2/21/16.
// Copyright © 2016 Michael Kavouras. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface APIManager : NSObject
+ (void)getDataWithCompletion:(void(^)(NSArray *data))completion;

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

#import "APIManager.h"
#import <AFNetworking/AFNetworking.h>

@implementation APIManager

+ (void)getDataWithCompletion:(void (^)(NSArray *))completion
{
NSString *url = @"https://heads-up-api.herokuapp.com";

AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];

[manager GET:url
parameters:nil
progress:nil
success:^(NSURLSessionTask *task, id responseObject)
{
completion(responseObject);

} failure:^(NSURLSessionTask *operation, NSError *error)
{
NSLog(@"Error: %@", error);
}];

}


@end
6 changes: 6 additions & 0 deletions HeadsUpper/HeadsUpper/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "HeadsUp.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions HeadsUpper/HeadsUpper/Assets.xcassets/ok.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "ok.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading