Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

UIApplication+mxcl

  • Loading branch information...
commit d83288e5c7de026bc5139087327174d0e441986a 1 parent 2ad755e
@mxcl authored
View
1  MBCategories.h
@@ -6,4 +6,5 @@
#import "UIAlertView+mxcl.h"
#import "UIColor+mxcl.h"
#import "UIAlertView+mxcl.h"
+#import "UIApplication+mxcl.h"
#import "UITableView+mxcl.h"
View
1  MBCategories.m
@@ -6,4 +6,5 @@
#import "UIAlertView+mxcl.m"
#import "UIColor+mxcl.m"
#import "UIAlertView+mxcl.m"
+#import "UIApplication+mxcl.m"
#import "UITableView+mxcl.m"
View
5 UIApplication+mxcl.h
@@ -0,0 +1,5 @@
+#import <UIKit/UIKit.h>
+
+@interface UIApplication (mxcl)
++ (id)documentsDirectory;
+@end
View
7 UIApplication+mxcl.m
@@ -0,0 +1,7 @@
+#import "UIApplication+mxcl.h"
+
+@implementation UIApplication (mxcl)
++ (NSString *)documentsDirectory {
+ return [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
+}
+@end
Please sign in to comment.
Something went wrong with that request. Please try again.