[Resolved] My app runs in "tall mode" in the simulator but not on the device (iPhone 5)

My app runs in “tall mode” in the simulator, but not on the device (iPhone 5). Any idea what I’m doing wrong?

I have Xcode 4.5. I have Default–568h@2x.png in my build folder.

I’m seeing display.pixelHeight return 1136 in the simulator, but in the console in Xcode I’m seeing it return 960. (I noticed that there was an issue with the Lua print API and that it could not output to the console, but I’m definitely seeing my print messages in the Xcode console.)

Thx.

[import]uid: 3800 topic_id: 31529 reply_id: 331529[/import]

Have you got xcode to show the device as an iPhone 5?

Is your Default-568h file the correct dimentions? (1136x640)

also what does your config.lua look like?

Here is an example of the one I use: https://gist.github.com/3751257 [import]uid: 62706 topic_id: 31529 reply_id: 125983[/import]

It was my config.lua file. I didn’t have an if-then statement to check the height and device. I added that and it works great now! Thanks for sharing your config file.

I didn’t see this documented anywhere. Did you figure this out yourself? [import]uid: 3800 topic_id: 31529 reply_id: 126006[/import]

Yeah, I’ve had that config file for a few months for iPhone & iPad, just added the iPhone 5 resolution to it and it just worked!

Glad it helped you :slight_smile: [import]uid: 62706 topic_id: 31529 reply_id: 126008[/import]

cool. thanks a ton!!! [import]uid: 3800 topic_id: 31529 reply_id: 126009[/import]

Have you got xcode to show the device as an iPhone 5?

Is your Default-568h file the correct dimentions? (1136x640)

also what does your config.lua look like?

Here is an example of the one I use: https://gist.github.com/3751257 [import]uid: 62706 topic_id: 31529 reply_id: 125983[/import]

It was my config.lua file. I didn’t have an if-then statement to check the height and device. I added that and it works great now! Thanks for sharing your config file.

I didn’t see this documented anywhere. Did you figure this out yourself? [import]uid: 3800 topic_id: 31529 reply_id: 126006[/import]

Yeah, I’ve had that config file for a few months for iPhone & iPad, just added the iPhone 5 resolution to it and it just worked!

Glad it helped you :slight_smile: [import]uid: 62706 topic_id: 31529 reply_id: 126008[/import]

cool. thanks a ton!!! [import]uid: 3800 topic_id: 31529 reply_id: 126009[/import]