Skip to content

Instantly share code, notes, and snippets.

View seanhess's full-sized avatar

Sean Hess seanhess

View GitHub Profile
//////////////////////////////////////
// LONG WAY //////////////////////////
//////////////////////////////////////
var person = {} // same as "new Object()"
person.name = "sean"
person.friends = []
var friend = {}
//
// BookService.h
// Libros
//
// Created by Sean Hess on 1/10/13.
// Copyright (c) 2013 Sean Hess. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Book.h"
//
// HelloGLKitViewController.m
// OpenGL2Tutorial
//
// Created by Sean Hess on 4/10/13.
// Copyright (c) 2013 Sean Hess. All rights reserved.
//
#import "HelloGLKitViewController.h"
//
// OMViewController.m
// Omnimancer
//
// Created by Sean Hess on 4/9/13.
// Copyright (c) 2013 Sean Hess. All rights reserved.
//
// Goal, draw a second cube, one unit to the right
//
// OMViewController.m
// Omnimancer
//
// Created by Sean Hess on 4/9/13.
// Copyright (c) 2013 Sean Hess. All rights reserved.
//
// Goal, draw a second cube, one unit to the right
//
// OMViewController.m
// Omnimancer
//
// Created by Sean Hess on 4/9/13.
// Copyright (c) 2013 Sean Hess. All rights reserved.
//
// Goal, draw a second cube, one unit to the right
// I had to set the navigation bar to hidden, then add the top and bottom controls as a view.
// I don't think you can control the navigation bar directly.
- (void)viewDidLoad {
[self.navigationController setNavigationBarHidden:YES animated:NO];
}
- (void)showControls {
[UIView animateWithDuration:0.2 animations:^{
CGRect bottomFrame = self.bottomControlsView.frame;
bottomFrame.origin.y = self.view.frame.size.height - bottomFrame.size.height;
// I had to set the navigation bar to hidden, then add the top and bottom controls as a view.
// I don't think you can control the navigation bar directly.
- (void)viewDidLoad {
[self.navigationController setNavigationBarHidden:YES animated:NO];
}
- (void)showControls {
[UIView animateWithDuration:0.2 animations:^{
CGRect bottomFrame = self.bottomControlsView.frame;
bottomFrame.origin.y = self.view.frame.size.height - bottomFrame.size.height;
// I had to set the navigation bar to hidden, then add the top and bottom controls as a view.
// I don't think you can control the navigation bar directly.
- (void)viewDidLoad {
[self.navigationController setNavigationBarHidden:YES animated:NO];
}
- (void)showControls {
[UIView animateWithDuration:0.2 animations:^{
CGRect bottomFrame = self.bottomControlsView.frame;
bottomFrame.origin.y = self.view.frame.size.height - bottomFrame.size.height;
// I had to set the navigation bar to hidden, then add the top and bottom controls as a view.
// I don't think you can control the navigation bar directly.
- (void)viewDidLoad {
[self.navigationController setNavigationBarHidden:YES animated:NO];
}
- (void)showControls {
[UIView animateWithDuration:0.2 animations:^{
CGRect bottomFrame = self.bottomControlsView.frame;
bottomFrame.origin.y = self.view.frame.size.height - bottomFrame.size.height;