How do I design submissions for a multi-stage registration form on Iphone

I am developing a registration form on iphone, but I am confused about the best approach.

I couldn’t be sure how to design representations for the best approach.

My thoughts - Create each step of a new view manager and click next viewcontroller when the user clicks the next. - Create each step of a new view and set the hidden = NO next view when the user clicks the next and sets hidden = YES for the current view.

Finally, the second approach seems more efficient, but the Builder interface does not seem to help much in the design.

+4
source share
2 answers

Agree with your question that this is difficult to solve. I would summarize the alternatives, since many of the views corresponded to the registration steps inside a single vc or vc container representing a plurality of vcs, where each of them performs the reg step.

Another alternative to the first sort (1 vc, many views) is to put many views in a large uiscrollview with paging enabled.

I don't think there is a tough and quick answer, but my pref for reg interaction is the only vc. The user probably understands reg as one step with substeps, and not as separate parts of your application (which implies switching to vc push, imo).

You are right, but IB makes the design inconvenient for this. I coped with this task in two ways: 1) just handle it, including reordering the views in ib so you can work at the very top 2) build tips for each view. load them all in viewDidLoad for a single vc. frame them in code

I recommend idea two for something non-trivial for these views. Good luck.

+3
source

I think the best approach for this is to use a UINavigationController. This is very easy to set up in storyboards and will allow you to navigate between multiple view controllers with minimal effort.

Nav controller β†’ FirstView β†’ SecondView β†’ ETC, ETC

The user can freely move between different parts of the form and at your end, the opposite is the case for you, and all you need to do to move forward is to use:

UIViewController *myController = [self.storyboard instantiateViewControllerWithIdentifier:@"someID"]; [self.navigationController pushViewController:myController animated:YES]; 

enter image description here

0
source

Source: https://habr.com/ru/post/1433045/


All Articles