Skip to content

Commit

Permalink
Add more styling
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisballinger committed Apr 10, 2014
1 parent 20e9d0e commit 4eb4a7f
Show file tree
Hide file tree
Showing 14 changed files with 59 additions and 14 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "KFBroadcastIcon@2x.png"
"filename" : "KFInfoIcon@2x.png"
}
],
"info" : {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Example/Images.xcassets/KFVideoCameraIcon.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "[email protected]"
}
],
"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.
6 changes: 4 additions & 2 deletions Example/Images.xcassets/LaunchImage.launchimage/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"orientation" : "portrait",
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "retina4",
"extent" : "full-screen",
"filename" : "[email protected]",
"minimum-system-version" : "7.0",
"orientation" : "portrait",
"scale" : "2x"
},
{
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 14 additions & 2 deletions Example/KFDemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#import "KFStreamTableViewCell.h"
#import <MediaPlayer/MediaPlayer.h>
#import "UIActionSheet+Blocks.h"
#import "VTAcknowledgementsViewController.h"

static NSString * const kKFStreamView = @"kKFStreamView";
static NSString * const kKFStreamsGroup = @"kKFStreamsGroup";
Expand Down Expand Up @@ -112,7 +113,9 @@ - (void) setupDatabaseView {

- (void) setupNavigationBarAppearance {
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
[self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]}];
NSDictionary *attributes = @{NSForegroundColorAttributeName : [UIColor whiteColor],
NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-Light" size:20.0]};
[self.navigationController.navigationBar setTitleTextAttributes:attributes];
self.navigationController.navigationBar.translucent = NO;
self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:0.0 green:0.7 blue:0.0 alpha:1.0];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
Expand All @@ -132,6 +135,12 @@ - (void) setupTableView {
[self.view addConstraints:constraints];
}

- (void) infoButtonPressed:(id)sender {
VTAcknowledgementsViewController *viewController = [VTAcknowledgementsViewController acknowledgementsViewController];
viewController.headerText = NSLocalizedString(@"We love open source software.", nil); // optional
[self.navigationController pushViewController:viewController animated:YES];
}

- (void) setupPullToRefresh {
self.pullToRefreshView = [[SSPullToRefreshView alloc] initWithScrollView:self.streamsTableView delegate:self];
self.pullToRefreshView.contentView = [[SSPullToRefreshSimpleContentView alloc] initWithFrame:CGRectZero];
Expand All @@ -146,9 +155,12 @@ - (void)viewDidLoad

self.title = @"Kickflip";

UIBarButtonItem *broadcastBarButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"KFBroadcastIcon"] style:UIBarButtonItemStylePlain target:self action:@selector(broadcastButtonPressed:)];
UIBarButtonItem *broadcastBarButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"KFVideoCameraIcon"] style:UIBarButtonItemStylePlain target:self action:@selector(broadcastButtonPressed:)];
self.navigationItem.rightBarButtonItem = broadcastBarButton;

UIBarButtonItem *infoBarButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"KFInfoIcon"] style:UIBarButtonItemStylePlain target:self action:@selector(infoButtonPressed:)];
self.navigationItem.leftBarButtonItem = infoBarButton;

/*
UIImageView *logoImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"KFLogoTransparent"]];
logoImageView.contentMode = UIViewContentModeScaleAspectFit;
Expand Down
4 changes: 4 additions & 0 deletions Example/Kickflip-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
<array>
<string>armv7</string>
</array>
<key>UIStatusBarHidden</key>
<false/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
Expand Down
4 changes: 4 additions & 0 deletions Kickflip.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
D945AF68189873900026F697 /* libc++.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D945AF67189873900026F697 /* libc++.dylib */; };
D945AF6C189874B80026F697 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D945AF6A189874AB0026F697 /* SystemConfiguration.framework */; };
D945AF6E189874C80026F697 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D945AF6D189874C70026F697 /* MobileCoreServices.framework */; };
D9F0C38718F75C5500DCED85 /* Pods-acknowledgements.plist in Resources */ = {isa = PBXBuildFile; fileRef = D9F0C38618F75C5500DCED85 /* Pods-acknowledgements.plist */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -48,6 +49,7 @@
D945AF6D189874C70026F697 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
D99912CE18984D3F00BFCBA4 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
D99912DC18984D3F00BFCBA4 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
D9F0C38618F75C5500DCED85 /* Pods-acknowledgements.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "Pods-acknowledgements.plist"; path = "Pods/Pods-acknowledgements.plist"; sourceTree = SOURCE_ROOT; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -81,6 +83,7 @@
D945ADD3189854000026F697 /* KFAppDelegate.m */,
D945AF3F1898635A0026F697 /* KFDemoViewController.h */,
D945AF401898635A0026F697 /* KFDemoViewController.m */,
D9F0C38618F75C5500DCED85 /* Pods-acknowledgements.plist */,
D945ADD4189854000026F697 /* Kickflip-Info.plist */,
D945ADD5189854000026F697 /* Kickflip-Prefix.pch */,
D945ADD6189854000026F697 /* main.m */,
Expand Down Expand Up @@ -177,6 +180,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D9F0C38718F75C5500DCED85 /* Pods-acknowledgements.plist in Resources */,
D945ADD7189854000026F697 /* InfoPlist.strings in Resources */,
D945ADD8189854000026F697 /* Images.xcassets in Resources */,
);
Expand Down
5 changes: 3 additions & 2 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ platform :ios, "7.0"
pod 'Kickflip', :path => 'Submodules/kickflip-ios-sdk/Kickflip.podspec'

#pod 'Kickflip', '~> 0.9'
pod 'YapDatabase'
pod 'YapDatabase', '~> 2.4'
pod 'SSPullToRefresh', '~> 1.2'
pod 'UIAlertView-Blocks', '~> 1.0'
pod 'UIAlertView-Blocks', '~> 1.0'
pod 'VTAcknowledgementsViewController', '~> 0.10'
3 changes: 3 additions & 0 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ PODS:
- SSPullToRefresh (1.2.0)
- UIAlertView-Blocks (1.0)
- UIView+AutoLayout (1.3.0)
- VTAcknowledgementsViewController (0.10)
- YapDatabase (2.4.1):
- CocoaLumberjack (~> 1.6.3)

DEPENDENCIES:
- Kickflip (from `Submodules/kickflip-ios-sdk/Kickflip.podspec`)
- SSPullToRefresh (~> 1.2)
- UIAlertView-Blocks (~> 1.0)
- VTAcknowledgementsViewController (~> 0.10)
- YapDatabase

EXTERNAL SOURCES:
Expand All @@ -68,6 +70,7 @@ SPEC CHECKSUMS:
SSPullToRefresh: ecdc6efdee5322bba8b57dc77c1263ef6b4170bf
UIAlertView-Blocks: f7be28a08e85ec21143951ec6797ca6474faf563
UIView+AutoLayout: 43373a18797954fd8ee3b1423af364f1b80a2af8
VTAcknowledgementsViewController: 76b8edcea89b58b7be15876aaa5aba7fa8b221d7
YapDatabase: 96c3aed68fe5087d596a4b400087b861e43c93d3

COCOAPODS: 0.31.1
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,31 @@ Example project for integration of the [Kickflip iOS SDK](https://github.com/Kic

## Cocoapods Setup

You'll need to install [Cocoapods](http://cocoapods.org) first. Because you're so bleeding edge, some of our dependencies aren't in the official Cocoapods repo yet, so you'll have to add our Specs repo.

$ pod repo add kickflip [email protected]:Kickflip/Specs.git
You'll need to install [Cocoapods](http://cocoapods.org) first.

## Compiling

Grab the source code, check for changes to our Podspecs repo, and then update the dependencies.
Grab the source code, and then update the dependencies.

$ git clone [email protected]:Kickflip/kickflip-ios-example.git
$ cd kickflip-ios-example
$ git submodule update --init
$ pod repo update kickflip
$ pod

If you would like to make modifications to the core SDK, you can integrate the SDK as a submodule as well (check the `Podfile` for more info).

## KFSecrets.h

You'll need to [sign up](http://kickflip.io), make a new app, and then put your API keys from and put them in a file called `KFSecrets.h` with the following contents:
You'll need to [sign up](https://kickflip.io), make a new app, and then put your API keys from and put them in a file called `KFSecrets.h` with the following contents:

#define KICKFLIP_API_KEY @"Client ID from kickflip.io"
#define KICKFLIP_API_SECRET @"Client Secret from kickflip.io"

## License

Apache 2.0
Apache 2.0

## Attribution

* [Info](http://icons8.com/icons/#!/77/info) by [Icons 8](http://icons8.com) ([CC BY-ND 3.0](http://creativecommons.org/licenses/by-nd/3.0/))
* [Camera Video](https://www.iconfinder.com/icons/172629/camera_video_icon) by [Icons 8](http://icons8.com) ([CC BY-ND 3.0](http://creativecommons.org/licenses/by-nd/3.0/))

0 comments on commit 4eb4a7f

Please sign in to comment.