Skip to content

Instantly share code, notes, and snippets.

View georgejecook's full-sized avatar

George Cook georgejecook

View GitHub Profile
@georgejecook
georgejecook / gist:3536957
Created August 30, 2012 18:35
something causes the code to crash at the alive4 in addPlayerLayer.. _playerLayer = [AVPlayerLayer playerLayerWithPlayer:self.player];
//////////////////////////////////////////////////////////////
#pragma mark video layer initialization
//////////////////////////////////////////////////////////////
- (void)initializePlayer {
[self cleanup:YES];
if (!self.player) {
self.player = [[AVPlayer alloc] init];
[self.layer setMasksToBounds:YES];
@georgejecook
georgejecook / gist:2716202
Created May 17, 2012 04:02
wtf is wrong with this tableview? - didSelectIndexPath is returning wrong values - and first touch selects the row, but didSelectIndexPath is not called
@interface OVChannelViewController : UIViewController <OVChannelManagerDelegate, UITableViewDataSource, UITableViewDelegate>
@property (strong, nonatomic) NSArray *channels;
@property (strong, nonatomic) UITableView *tableView;
@end
//
@georgejecook
georgejecook / gist:2697011
Created May 14, 2012 21:05
starview is coming out black when scale is smaller
//
// Created by georgecook on 13/05/2012.
//
// To change the template use AppCode | Preferences | File Templates.
//
#import "TTStarView.h"
#import "UIView+FrameAdditions.h"