|
@@ -1195,6 +1195,14 @@
|
|
|
[[NSFileManager defaultManager] removeItemAtPath:NSTemporaryDirectory() error:nil];
|
|
|
}
|
|
|
|
|
|
++ (void)clearTmpDirectory
|
|
|
+{
|
|
|
+ NSArray* tmpDirectory = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:NSTemporaryDirectory() error:NULL];
|
|
|
+ for (NSString *file in tmpDirectory) {
|
|
|
+ [[NSFileManager defaultManager] removeItemAtPath:[NSString stringWithFormat:@"%@%@", NSTemporaryDirectory(), file] error:NULL];
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+ (NSString *)getTitleSectionDate:(NSDate *)date
|
|
|
{
|
|
|
NSString *title;
|