adjust to xcode .app file reuse
This commit is contained in:
parent
f64ba3aff4
commit
293c3bf864
@ -59,7 +59,7 @@
|
|||||||
- (NSDictionary *) getHardCodedResponseForPageType:(NSString *)pageType {
|
- (NSDictionary *) getHardCodedResponseForPageType:(NSString *)pageType {
|
||||||
|
|
||||||
NSError *error;
|
NSError *error;
|
||||||
NSString *filePath = [[NSBundle mainBundle] pathForResource:pageType ofType:@"json"];
|
NSString *filePath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"JSON/%@", pageType] ofType:@"json"];
|
||||||
if (filePath) {
|
if (filePath) {
|
||||||
return [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:filePath] options:NSJSONReadingMutableContainers error:&error];
|
return [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:filePath] options:NSJSONReadingMutableContainers error:&error];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user