arrays? subview or submenu?

Discussion in 'iOS Programming' started by tacotester1, Feb 21, 2014.

  1. tacotester1, Feb 21, 2014
    Last edited: Feb 21, 2014

    tacotester1 macrumors member

    Joined:
    Dec 19, 2013
    #1
    I can make a button make an image appear and disappear in a uiimage view.
    but
    i would like to make multiple images appear from a submenu.

    the idea is
    i want to make a pop up menu from the bottom of view controller that holds diff buttons when u press a button a corresponding image appears in the main view controller.
    the images are like premade polaroids of fashiony dresses and shoes that u can put on ur "inspiration board"


    i have been looking for the answer and it seems to be making an image array. possibly mutable so i can add more later.
    is this correct?
    i can't find any really good information on how to do the pop up that will interact with the main view controller.

    any help will be greatly appreciated thanks !:apple:



    *also i read about child views a little is this what the correct term would be for what im looking for?
     
  2. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    If you're talking about an iPad app, you should use a UIPopover. Otherwise, you should open up a new UIView. However you open it, you should present it using a UICollectionView.
     
  3. tacotester1 thread starter macrumors member

    Joined:
    Dec 19, 2013
    #3
    awesome thanks ill look into that

    its Iphone

    thats the problem im having

    how to connect that part with the view controller


    i will read up on uicollection view!

    thanks alot for the great tip!
     
  4. tacotester1 thread starter macrumors member

    Joined:
    Dec 19, 2013
    #4
    so i checked out collection view
    it looks cool for having a scroll view collection
    but i can figure how to make it a sub menu pop up type menu.

    does anyone have a tut
    that might show how to set up a viewcontroller with a pop up menu

    i found a similiar one on wenderlich site
    but it was for ipad

    ill keep searching and update on here
    thanks!
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
  6. tacotester1 thread starter macrumors member

    Joined:
    Dec 19, 2013
    #6
  7. tacotester1 thread starter macrumors member

    Joined:
    Dec 19, 2013
    #7
    I went with a uiscrollview and was able to make it hide and show just fine!

    pretty happy it worked

    thanks for the tips!

    still reading up on other methods but that seemed to do the trick for now
     

Share This Page