-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6f3623e
Showing
60 changed files
with
2,176 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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] | ||
*.mp4 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
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 |
Oops, something went wrong.