Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
stoicdavid committed Dec 11, 2011
0 parents commit 6f3623e
Show file tree
Hide file tree
Showing 60 changed files with 2,176 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*~.nib
*.swp
*~
*(Autosaved).rtfd/
Backup[ ]of[ ]*.pages/
Backup[ ]of[ ]*.key/
Backup[ ]of[ ]*.numbers/
.DS_Store
xcuserdata/
project.xcworkspace/
VersionX-revision.h
build/
*.[oa]
*.pdf
*.PDF
*.mp4
593 changes: 593 additions & 0 deletions VisualAid.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions VisualAid/AppDelegate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// AppDelegate.h
// VisualAid
//
// Created by David Rodriguez on 12/11/11.
// Copyright (c) 2011 UNAM. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ViewController;

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@property (strong, nonatomic) ViewController *viewController;

@end
74 changes: 74 additions & 0 deletions VisualAid/AppDelegate.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
//
// AppDelegate.m
// VisualAid
//
// Created by David Rodriguez on 12/11/11.
// Copyright (c) 2011 UNAM. All rights reserved.
//

#import "AppDelegate.h"

#import "ViewController.h"

@implementation AppDelegate

@synthesize window = _window;
@synthesize viewController = _viewController;

- (void)dealloc
{
[_window release];
[_viewController release];
[super dealloc];
}

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.
self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
/*
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
*/
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
/*
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
*/
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
/*
Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
*/
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
/*
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
*/
}

- (void)applicationWillTerminate:(UIApplication *)application
{
/*
Called when the application is about to terminate.
Save data if appropriate.
See also applicationDidEnterBackground:.
*/
}

@end
26 changes: 26 additions & 0 deletions VisualAid/ListViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// ListViewController.h
// VisualAid
//
// Created by David Rodriguez on 12/11/11.
// Copyright (c) 2011 UNAM. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PDFTableViewController.h"

@interface ListViewController : UIViewController
{
UIButton *dismissButton;
UIPopoverController *popOverController;
UITableView *table;
}

@property (nonatomic, retain) UIButton *dismissButton;
@property (nonatomic, retain) UIPopoverController *popOverController;
@property (nonatomic, retain) IBOutlet UITableView *table;

-(IBAction) dismiss;


@end
73 changes: 73 additions & 0 deletions VisualAid/ListViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
//
// ListViewController.m
// VisualAid
//
// Created by David Rodriguez on 12/11/11.
// Copyright (c) 2011 UNAM. All rights reserved.
//

#import "ListViewController.h"

@implementation ListViewController
@synthesize dismissButton,popOverController,table;

-(IBAction) dismiss{
[self dismissModalViewControllerAnimated:YES];
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}

- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.

PDFTableViewController *primer = [[PDFTableViewController alloc] initWithStyle:UITableViewStylePlain];
[self.view addSubview:primer.view];




// if (self.popOverController.isPopoverVisible)
// {
// [self.popOverController dismissPopoverAnimated:YES];
// } else
// {
// [self.popOverController presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
//
// }
//

}

- (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}

@end
Loading

0 comments on commit 6f3623e

Please sign in to comment.