I’m trying to show a Game Center launch button for compatible devices but woe is me. This is working in the simulator, but on the iPhone it hangs the whole scene and nothing shows:
if( tonumber(system.getInfo( “platformVersion” ))>4)then
GCButton = ui.newButton{
default = “GC.png”,
over = “GCon.png”,
onRelease = showGC,
id = “2”,
text = “”
}
GCButton.x=150
GCButton.y=200
obj:insert(GCButton)
end
I mean the scene shows nothing and there are a bunch of other graphics which are even inserted before the GC button. Any ideas? Am I doing something way the heck wrong?
using: Corona simulator Version 2011.591 (2011.8.2)
testing on an iPhone iOS 4.2.10
Thanks! [import]uid: 8139 topic_id: 15634 reply_id: 315634[/import]