Author Topic: Game Store versions for iPhone and iPad  (Read 5449 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Game Store versions for iPhone and iPad
« on: May 30, 2013, 11:57:58 AM »
Hey, I was looking Clash of Clans and they've 2 versions of store depending if you're in iPhone or iPad
This should be done with a UIGrid, changing the lenght of the grid depending on the device you're using?



  1. if(IPhone.generation == iPhoneGeneration.iPhone)
  2. {
  3.         // Change UIGrid > maxPerLine = 0
  4. }




Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Game Store versions for iPhone and iPad
« Reply #1 on: May 30, 2013, 03:36:34 PM »
If the width is the same, you could still just have the same UIGrid, just use a container that can have either 1 big button or two half-height buttons. Then you don't need to set the maxPerLine and pray that it works.. ;)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Game Store versions for iPhone and iPad
« Reply #2 on: May 31, 2013, 02:03:53 PM »
jajajaja, thanks Nicki, I would try that!  ;)