RMStepsController icon indicating copy to clipboard operation
RMStepsController copied to clipboard

Handle more than five steps

Open tilowestermann opened this issue 10 years ago • 12 comments

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

tilowestermann avatar Jun 17 '14 11:06 tilowestermann

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

CooperRS avatar Jun 17 '14 11:06 CooperRS

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.

tilowestermann avatar Jun 17 '14 11:06 tilowestermann

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.

CooperRS avatar Jun 17 '14 12:06 CooperRS

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

tilowestermann avatar Jun 17 '14 12:06 tilowestermann

I started a new branch called UnlimitedSteps to implement this

CooperRS avatar Jun 23 '14 19:06 CooperRS

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.

tilowestermann avatar Jun 24 '14 20:06 tilowestermann

You are right. Thanks!

CooperRS avatar Jun 24 '14 20:06 CooperRS

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

tilowestermann avatar Jul 21 '14 08:07 tilowestermann

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 :).

CooperRS avatar Jul 21 '14 09:07 CooperRS

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 avatar Jul 31 '14 13:07 tilowestermann

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

tilowestermann avatar Jan 29 '15 13:01 tilowestermann

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 ;)

CooperRS avatar Jan 29 '15 20:01 CooperRS