Refactor, changed / to - on keyboard
This commit is contained in:
parent
3bc298e6cb
commit
a95ed4bd90
@ -2,86 +2,4 @@
|
|||||||
<Bucket
|
<Bucket
|
||||||
type = "1"
|
type = "1"
|
||||||
version = "2.0">
|
version = "2.0">
|
||||||
<Breakpoints>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "FMC Planner 2/ViewControllerScreen.m"
|
|
||||||
timestampString = "480456367.132317"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "93"
|
|
||||||
endingLineNumber = "93"
|
|
||||||
landmarkName = "-enterLSK:"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "FMC Planner 2/ViewControllerScreen.m"
|
|
||||||
timestampString = "480457455.927911"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "131"
|
|
||||||
endingLineNumber = "131"
|
|
||||||
landmarkName = "-loadDataToScreen"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "FMC Planner 2/ViewControllerScreen.m"
|
|
||||||
timestampString = "480457455.927911"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "101"
|
|
||||||
endingLineNumber = "101"
|
|
||||||
landmarkName = "-loadScreen:withOptions:"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "FMC Planner 2/ViewController.m"
|
|
||||||
timestampString = "480458312.697239"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "40"
|
|
||||||
endingLineNumber = "40"
|
|
||||||
landmarkName = "-saveToFile:"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "FMC Planner 2/ViewController.m"
|
|
||||||
timestampString = "480458375.079937"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "39"
|
|
||||||
endingLineNumber = "39"
|
|
||||||
landmarkName = "-saveToFile:"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
</Breakpoints>
|
|
||||||
</Bucket>
|
</Bucket>
|
||||||
|
|||||||
@ -22,4 +22,6 @@
|
|||||||
withMinimumSize:(NSInteger)minSize
|
withMinimumSize:(NSInteger)minSize
|
||||||
withMod:(float)mod;
|
withMod:(float)mod;
|
||||||
|
|
||||||
|
+ (NSString *)savePathForFile:(NSString *)file;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@ -49,4 +49,12 @@
|
|||||||
return [UIFont systemFontOfSize:mid];
|
return [UIFont systemFontOfSize:mid];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ (NSString *)savePathForFile:(NSString *)file {
|
||||||
|
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
|
||||||
|
NSUserDomainMask, YES);
|
||||||
|
NSString *documentsPath = [paths objectAtIndex:0];
|
||||||
|
return [documentsPath
|
||||||
|
stringByAppendingString:[NSString stringWithFormat:@"/%@", file]];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@ -39,27 +39,20 @@
|
|||||||
- (void)saveToFile:(NSDictionary *)save {
|
- (void)saveToFile:(NSDictionary *)save {
|
||||||
if (!([_save valueForKey:@"MENU@LSKR1"] == nil ||
|
if (!([_save valueForKey:@"MENU@LSKR1"] == nil ||
|
||||||
[[_save valueForKey:@"MENU@LSKR1"] isEqualToString:@""])) {
|
[[_save valueForKey:@"MENU@LSKR1"] isEqualToString:@""])) {
|
||||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(
|
[_save writeToFile:[SharedDeclerations
|
||||||
NSDocumentDirectory, NSUserDomainMask, YES);
|
savePathForFile:
|
||||||
NSString *documentsPath = [paths objectAtIndex:0];
|
[SharedDeclerations
|
||||||
[_save writeToFile:[documentsPath
|
savePathForFile:
|
||||||
stringByAppendingString:
|
|
||||||
[NSString
|
|
||||||
stringWithFormat:
|
|
||||||
@"/%@",
|
|
||||||
[_save valueForKey:@"MENU@LSKR1"]]]
|
[_save valueForKey:@"MENU@LSKR1"]]]
|
||||||
atomically:YES];
|
atomically:YES];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)loadSave:(NSString *)file {
|
- (void)loadSave:(NSString *)file {
|
||||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
|
if ([[NSFileManager defaultManager]
|
||||||
NSUserDomainMask, YES);
|
fileExistsAtPath:[SharedDeclerations savePathForFile:file]]) {
|
||||||
NSString *documentsPath = [paths objectAtIndex:0];
|
_save = [[NSMutableDictionary alloc]
|
||||||
NSString *filePath = [documentsPath
|
initWithContentsOfFile:[SharedDeclerations savePathForFile:file]];
|
||||||
stringByAppendingString:[NSString stringWithFormat:@"/%@", file]];
|
|
||||||
if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]) {
|
|
||||||
_save = [[NSMutableDictionary alloc] initWithContentsOfFile:filePath];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6,8 +6,8 @@
|
|||||||
// Copyright © 2016 Kilian Hofmann. All rights reserved.
|
// Copyright © 2016 Kilian Hofmann. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import "ViewControllerKeyboard.h"
|
|
||||||
#import "ViewController.h"
|
#import "ViewController.h"
|
||||||
|
#import "ViewControllerKeyboard.h"
|
||||||
|
|
||||||
@implementation ViewControllerKeyboard
|
@implementation ViewControllerKeyboard
|
||||||
|
|
||||||
@ -71,7 +71,7 @@
|
|||||||
@"",
|
@"",
|
||||||
@".",
|
@".",
|
||||||
@"0",
|
@"0",
|
||||||
@"/",
|
@"-",
|
||||||
@"",
|
@"",
|
||||||
@"",
|
@"",
|
||||||
@"",
|
@"",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user