This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////// | |
// LONG WAY ////////////////////////// | |
////////////////////////////////////// | |
var person = {} // same as "new Object()" | |
person.name = "sean" | |
person.friends = [] | |
var friend = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// HelloGLKitViewController.m | |
// OpenGL2Tutorial | |
// | |
// Created by Sean Hess on 4/10/13. | |
// Copyright (c) 2013 Sean Hess. All rights reserved. | |
// | |
#import "HelloGLKitViewController.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |