Resolved UIDevice currentDevice Q

Discussion in 'iOS Programming' started by xArtx, Jul 19, 2013.

  1. xArtx, Jul 19, 2013
    Last edited: Jul 19, 2013

    xArtx macrumors 6502a

    Joined:
    Mar 30, 2012
    #1
    Hi Guys,
    I should be able to test this easily, but don't have the iPad available.
    I know you can tell the difference between iPhones and iPads,iPods..
    with this:
    Code:
    [[UIDevice currentDevice] model]
    
    Can anyone tell me if it still returns the iPad string if it's called
    from an iPhone specific app running in iPhone mode on the iPad hardware?
    Thanks, Art.
     
  2. truehybridx macrumors member

    Joined:
    Dec 6, 2010
    #2
    It will regardless, return the model of the current device :D
    So yes, and ipad running the app in iphone mode would still return an ipad model string...
     
  3. xArtx thread starter macrumors 6502a

    Joined:
    Mar 30, 2012
    #3
    Thanks, I was hoping so.
     

Share This Page