Sliding ViewController Method

Discussion in 'iOS Programming' started by joaogfmoreira, Mar 25, 2015.

  1. joaogfmoreira macrumors newbie

    Joined:
    Feb 24, 2015
    #1
    Hello all!

    So I was trying to implement a new method in my app (see attachment). I want "Page 1 View" to be the default one, showing some kind of content. Then, when i click "PAGE 2" in the bottom, it will slide up and bring page 2 (Page 2 View) along. If i want to go back to Page 1 View, a new item will appear, which allows us to do the exact same motion, but sliding down.

    So, summarizing, i want to create the sliding up and down idea and the mini arrows indicate the movement direction. Click "PAGE 2" and the slider goes up and brings Page 2 View and vice-versa.

    Thank you
     

    Attached Files:

  2. JohnsonK macrumors regular

    Joined:
    Mar 6, 2014
    #2
    I'd start by looking into custom view controller transitions
     
  3. joaogfmoreira thread starter macrumors newbie

    Joined:
    Feb 24, 2015
    #3
    Thank you, I was wondering about how these "different" view controllers were called! Will do!
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Doesn't the default "present modal view" pretty much do what you're asking?
     
  5. joaogfmoreira thread starter macrumors newbie

    Joined:
    Feb 24, 2015
    #5
    It covers the slide up and down function, yes, but I want to implement those sections containing "PAGE 1" and "PAGE 2" that slide along with the view controllers. To be exactly the same as my drawing.
     
  6. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    Ah, I see. Yeah, you could get the "PAGE 2" in the modal view, but it wouldn't push the "PAGE 1" out of the way. Interesting. Let us know what you figure out or if you need help with some of the details.
     
  7. joaogfmoreira thread starter macrumors newbie

    Joined:
    Feb 24, 2015
    #7
    It will be quite a challenge! I'll keep you updated, thanks!
     
  8. Punkjumper macrumors member

    Joined:
    Jan 12, 2013
    #8
    Also might want to check out container view controllers. Might get you where you want to go. I've used it to do custom transitions and non standard navigation instead of a navigation controller.
     
  9. joaogfmoreira thread starter macrumors newbie

    Joined:
    Feb 24, 2015
    #9

    Doing so! Thank you!
     

Share This Page