-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made path to stored image creating dynamically since app id is changi…
…ng every time app is launched
- Loading branch information
Showing
18 changed files
with
118 additions
and
54 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
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
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
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
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
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
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
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,15 @@ | ||
// | ||
// CSNCommonFunctions.h | ||
// CSNCensorNetUaProject | ||
// | ||
// Created by Dmytro Omelchuk on 4/7/15. | ||
// Copyright (c) 2015 Dmytro Omelchuk. All rights reserved. | ||
// | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
#ifndef CSNCensorNetUaProject_CSNCommonFunctions_h | ||
#define CSNCensorNetUaProject_CSNCommonFunctions_h | ||
|
||
NSString *CSNPathToStoredFileFromURLString(NSString *anURLString); | ||
|
||
#endif |
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 @@ | ||
// | ||
// CSNCommonFunctions.m | ||
// CSNCensorNetUaProject | ||
// | ||
// Created by Dmytro Omelchuk on 4/7/15. | ||
// Copyright (c) 2015 Dmytro Omelchuk. All rights reserved. | ||
// | ||
//////////////////////////////////////////////////////////////////////////////// | ||
#import "CSNCommonFunctions.h" | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
NSString *CSNPathToStoredFileFromURLString(NSString *anURLString) | ||
{ | ||
NSString *theDirectory = [NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, | ||
NSUserDomainMask, YES) lastObject]; | ||
NSString *thePath = [theDirectory stringByAppendingFormat:@"/%@/%ld.jpg", | ||
[[NSBundle mainBundle] bundleIdentifier], [anURLString hash]]; | ||
return thePath; | ||
} |
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
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
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
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
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
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,22 @@ | ||
// | ||
// CSNPrefixHeader.pch | ||
// CSNCensorNetUaProject | ||
// | ||
// Created by Dmytro Omelchuk on 4/7/15. | ||
// Copyright (c) 2015 Dmytro Omelchuk. All rights reserved. | ||
// | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
#ifndef CSNCensorNetUaProject_CSNPrefixHeader_pch | ||
#define CSNCensorNetUaProject_CSNPrefixHeader_pch | ||
|
||
#ifdef __OBJC__ | ||
|
||
#import <UIKit/UIKit.h> | ||
#import <Foundation/Foundation.h> | ||
|
||
#endif | ||
|
||
#import "CSNCommonFunctions.h" | ||
|
||
#endif |
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
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
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