iphone - ModalView slide off screen -


i creating user registration functionality in application , needed direction in how implement it. currently, main screen has sign button. when user clicks sign button, modalview slides bottom , presents user required textfields registration. user fills out form , clicks submit button on top right of nav bar ( added nav bar modalview). when user clicks submit button, modalview "disappear" , display activity indicator while validation takes place. if user registers, activity indicator should disappear , new screen slide in right. if submission failed reason, modal view should "re-appear" information user entered.

right problem hiding modalview during validation , sliding in new screen on successful registration. approaches this?

thanks in advance!

here method creates modalview:

- (void)getsignupview:(id)sender {      signupviewcontroller *signupviewcontroller = [[signupviewcontroller alloc]                                                   initwithstyle:uitableviewstylegrouped];      uinavigationcontroller *navigationcontroller = [[uinavigationcontroller     alloc] initwithrootviewcontroller:signupviewcontroller];     [self presentmodalviewcontroller:navigationcontroller animated:yes];      [signupviewcontroller release];  } 

i suggest add activity indicator view navigation controller , set animation no. if validation successful pop out view , add new controller animation set yes.

if unsucessfull pop till root view controller. piece of code suggests aware of method calls so. let me know if need additional code.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -