mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-25 15:18:11 +00:00
Reset field on Wizard show
This commit is contained in:
parent
0284edb3af
commit
ee6d6c3a9c
1 changed files with 16 additions and 0 deletions
|
|
@ -156,8 +156,24 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
|
||||
#pragma mark -
|
||||
|
||||
+ (void)cleanTextField:(UIView*)view {
|
||||
if([view isKindOfClass:[UITextField class]]) {
|
||||
[(UITextField*)view setText:@""];
|
||||
} else {
|
||||
for(UIView *subview in view.subviews) {
|
||||
[WizardViewController cleanTextField:subview];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)resetWizard {
|
||||
[self clearProxyConfig];
|
||||
[WizardViewController cleanTextField:welcomeView];
|
||||
[WizardViewController cleanTextField:choiceView];
|
||||
[WizardViewController cleanTextField:createAccountView];
|
||||
[WizardViewController cleanTextField:connectAccountView];
|
||||
[WizardViewController cleanTextField:externalAccountView];
|
||||
[WizardViewController cleanTextField:validateAccountView];
|
||||
[self changeView:welcomeView back:FALSE animation:FALSE];
|
||||
[waitView setHidden:TRUE];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue