doc_view_controller.mm 654 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#import "doc_view_controller.h"

@interface DocViewController ()

@end

@implementation DocViewController

#pragma mark -
#pragma mark View Life Cycle
- (void)viewDidLoad {
	[super viewDidLoad];
}

#pragma mark -
#pragma mark Document Interaction Controller Delegate Methods
- (UIViewController *) documentInteractionControllerViewControllerForPreview: (UIDocumentInteractionController *) controller {
	//return [[[[UIApplication sharedApplication]windows] firstObject]rootViewController];
	return self;
}

- (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)controller
{
	[self removeFromParentViewController];
}

@end