This repository was archived by the owner on Aug 19, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
safeslingerdemo/safeslingerdemo Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ -(IBAction)BegineExchange:(id)sender
123123{
124124 proto = [[safeslingerexchange alloc ]init];
125125 // use default client version
126- if ([proto SetupExchange: self ServerHost: hostField.text VersionNumber: nil ])
126+ if ([proto SetupExchange: self ServerHost: hostField.text VersionNumber: nil FirstUse: ![[ NSUserDefaults standardUserDefaults ] boolForKey: @" FIRST_USE " ] ])
127127 {
128128 [proto BeginExchange: [secretData.text dataUsingEncoding: NSUTF8StringEncoding]];
129129 // save parameters
@@ -161,6 +161,9 @@ - (BOOL)textFieldShouldReturn:(UITextField *)textField
161161#pragma SafeSlingerDelegate Methods
162162- (void )EndExchange : (int )status_code ErrorString : (NSString *)error_str ExchangeSet : (NSArray *)exchange_set
163163{
164+ if (![[NSUserDefaults standardUserDefaults ] boolForKey: @" FIRST_USE" ])
165+ [[NSUserDefaults standardUserDefaults ] setBool: YES forKey: @" FIRST_USE" ];
166+
164167 [self .navigationController popToRootViewControllerAnimated: YES ];
165168 switch (status_code)
166169 {
Original file line number Diff line number Diff line change 2121 <key >CFBundlePackageType </key >
2222 <string >APPL </string >
2323 <key >CFBundleShortVersionString </key >
24- <string >1.0.1 </string >
24+ <string >1.0.2 </string >
2525 <key >CFBundleSignature </key >
2626 <string >???? </string >
2727 <key >CFBundleVersion </key >
28- <string >1.0.1 .1 </string >
28+ <string >1.0.2 .1 </string >
2929 <key >LSRequiresIPhoneOS </key >
3030 <true />
3131 <key >UIMainStoryboardFile </key >
You can’t perform that action at this time.
0 commit comments