Skip to content

Commit

Permalink
added screenshot module
Browse files Browse the repository at this point in the history
  • Loading branch information
David Scharf committed Jan 5, 2013
1 parent 87ab730 commit 67ccd5a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Bunch-o-Tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@
#import "BOTBlockActionSheet.h"

//UIView Categories
#import "UIView+LayoutHelpers.h"
#import "UIView+LayoutHelpers.h"

//NSURL Categories
#import "NSURL+Directories.h"
11 changes: 11 additions & 0 deletions src/NSURL+Directories/NSURL+Directories.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// NSURL+Directories.h
//

#import <Foundation/Foundation.h>

@interface NSURL(Directories)

+ (NSURL *) documentsDirectory;

@end
18 changes: 18 additions & 0 deletions src/NSURL+Directories/NSURL+Directories.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// NSURL+Directories.m
// nysci
//
// Created by Dave on 1/5/13.
// Copyright (c) 2013 Local Projects. All rights reserved.
//

#import "NSURL+Directories.h"

@implementation NSURL(Directories)

+ (NSURL *) documentsDirectory {
NSURL *docUrl = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
return docUrl;
}

@end

0 comments on commit 67ccd5a

Please sign in to comment.