CooperRS / RMStepsController

This is an iOS control for guiding users through a process step-by-step
MIT License
1.04k stars 119 forks source link

Handle more than five steps #15

Open tilowestermann opened 10 years ago

tilowestermann commented 10 years ago

Adding more than five view controllers leads to the result shown in the screenshot (in portrait mode). One solution would be to indicate further steps by "..." instead of the fifth step (the same for previous steps, if the current one is >5). screen shot 2014-06-17 at 13 27 00

CooperRS commented 10 years ago

Ohoh, never had a process with more than 5 steps So I always neglected that use case. Will take a look into this...

tilowestermann commented 10 years ago

I guess that five will suffice in cases where you are presenting an intro to the user. In my particular one, I'd like to use RMStepsController for building a questionnaire, which could have more than five.

CooperRS commented 10 years ago

I think I will pick up your suggestion. When you tap the "..." you get a UIActionSheet Menu where you can select a certain step. The same "..." will also appear on the left, when you are in step 20.

This way you do not need to go back five times to get to a certain step. Instead you can access every step nearly instantaneously.

tilowestermann commented 10 years ago

Sounds great (although I would disable manually selecting a certain step in my particular case ;))! Thanks for your effort!

CooperRS commented 10 years ago

I started a new branch called UnlimitedSteps to implement this

tilowestermann commented 10 years ago

Please note that this issue is only present for (current) iPhones, i.e. not iPads with a larger screen size. If you intend to hardcode the "more than five", there should be a conditional setting another value for iPads.

CooperRS commented 10 years ago

You are right. Thanks!

tilowestermann commented 10 years ago

Just checked the new branch and it looks promising! The UIActionSheet is the only thing missing, right?

CooperRS commented 10 years ago

The UIActionSheet is missing and the current implementation has some animation bugs. In addition, it is fixed to 5 steps (even on the iPad). Unfortunately, I do not have that much spare time as iI hoped to have (due to university tasks). I'm sorry for that!

If you wish you can continue where I left of. In that case you could make a pull request and I could merge the request. Of course, you will be mentioned in the credits section :).

tilowestermann commented 10 years ago

I didn't touch the animation bugs, but pushed a first version of the UIActionSheet. There might a be better solution, but this one works without having read every single line of code of RMStepsController.

tilowestermann commented 9 years ago

@CooperRS is there any update on this issue? Do you intend to push it to the master branch?

CooperRS commented 9 years ago

Unfortunately, no news on this issue, yet :/

Currently, I'm working on my App Store apps. I still plan to solve this issue, but no promises when ;)