multipleVCs on iPad, how to show/hide

Discussion in 'iOS Programming' started by f77coder, Dec 12, 2014.

  1. f77coder macrumors newbie

    f77coder

    Joined:
    Jun 13, 2014
    Location:
    Twilight Zone
    #1
    all,

    am developing an iPad app in swift, on root VC i have multiple VCs on top all connected with embedded segues. on the root VC there is going to be UIToolbar to control which VCs are active at any given time.

    so by clicking a button on the UIToolbar how do i make a VC appear then disappear?

    so far, after grepping through the docs, UIView has a AddSubview but have found not much else.

    is there the equivalent of the html/css -z? force inactive VCs to a lower display?

    any help? in swift
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
  3. f77coder, Dec 12, 2014
    Last edited: Dec 12, 2014

    f77coder thread starter macrumors newbie

    f77coder

    Joined:
    Jun 13, 2014
    Location:
    Twilight Zone
    #3
    yes i've tried to hash through it but find the documentation terrible. as you mention, most of it isn't updated to swift and most of their examples are iPhone not iPad.

    and on iPad these segues are embed NOT modal or otherwise so you can't use prepareForSegue blah blah blah
     
  4. f77coder thread starter macrumors newbie

    f77coder

    Joined:
    Jun 13, 2014
    Location:
    Twilight Zone
    #4
    there are two ways make code unreadable
    1. run it through an obfuscator
    2. write it in objective-c
     
  5. f77coder thread starter macrumors newbie

    f77coder

    Joined:
    Jun 13, 2014
    Location:
    Twilight Zone
    #5
    thanks for all the help :roll eyes: it was insightful... NOT

    figured it out myself without reading apple's crap obj-c documentation or their outdated examples.

    score
    me 100 for falling back on hard core c/perl/python experience.
    apple 0 for not providing documentation or examples in swift.
     
  6. xStep, Dec 13, 2014
    Last edited: Dec 14, 2014

    xStep macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #6
    Let me rewrite number 2 for you.
    2. write it in a language the reader doesn't know and will whine about.​

    That sounds rude. You shouldn't burn your bridges to the kind people who are trying to help out or others who may try to help you later on.

    Since you have a solution, please post at least a basic description of your solution, so that when someone else arrives here via a search, they'll get a clue what to look for.

    Lastly, please mark the question resolved.
     
  7. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #7
    OP may have figured it out, but I thought I'd post the following tutorial, in case anyone else was still looking for some info:

    Beginning iOS Collection Views in Swift

    I haven't gone through it but, since it's from Ray Wenderlich, I trust it to provide some decent help.
     

Share This Page