iOS 6 on button click app crashes with no warning!

Hello everyone,

Something really strange is happening. I a working on this app in which I have a scrollview holding different clickable buttons and what not…

So, in the simulator all works great! But when I install it to a device, in this case iPad and iPod touch, something really strange happens: all of a sudden, after clicking different buttons, the app randomly exits out. Without any warnings! I am using button = ui.newButton{} to create all the buttons I am displaying on the screen. On a side note, I am using a lot of nested if statements where I am making some buttons visible and other not visible button.isVisible = true.

I know this maybe a very vague question/topic, but I am hoping is not just me who is having this annoying issue.

Any input is highly appreciated.

Thanks [import]uid: 75258 topic_id: 31809 reply_id: 331809[/import]

magadistudio,
My guess is that you are experiencing the same thing that I did with the later daily builds of the Corona SDK.

Check out this thread:
http://developer.coronalabs.com/forum/2012/09/26/uilua-corona-simulator-919-and-922

Peach said that the UI library was no longer supported. I did end up switching over to the widget library instead and adding in the missing .isActive functionality into my own code. I have not had any problems after the switch.

[import]uid: 17827 topic_id: 31809 reply_id: 126970[/import]

@thegdog,
Thank you very much for the info! You’ve literally saved me from grief! A million thanks from magadistudio! Do you have any games/apps in the appstore or any other store? That way I can buy to show how grateful I am to you? [import]uid: 75258 topic_id: 31809 reply_id: 127054[/import]

magadistudio,
You are very welcome. Glad I could help.

I am finishing up my (hopefully) last bug before submitting my first app to the store. Hopefully soon. :slight_smile:

But thank you! [import]uid: 17827 topic_id: 31809 reply_id: 127059[/import]

magadistudio,
My guess is that you are experiencing the same thing that I did with the later daily builds of the Corona SDK.

Check out this thread:
http://developer.coronalabs.com/forum/2012/09/26/uilua-corona-simulator-919-and-922

Peach said that the UI library was no longer supported. I did end up switching over to the widget library instead and adding in the missing .isActive functionality into my own code. I have not had any problems after the switch.

[import]uid: 17827 topic_id: 31809 reply_id: 126970[/import]

@thegdog,
Thank you very much for the info! You’ve literally saved me from grief! A million thanks from magadistudio! Do you have any games/apps in the appstore or any other store? That way I can buy to show how grateful I am to you? [import]uid: 75258 topic_id: 31809 reply_id: 127054[/import]

magadistudio,
You are very welcome. Glad I could help.

I am finishing up my (hopefully) last bug before submitting my first app to the store. Hopefully soon. :slight_smile:

But thank you! [import]uid: 17827 topic_id: 31809 reply_id: 127059[/import]

Hello there again!

I am finding out that the problem isn’t necessarily what I thought it was. I think it has to do with the widget.newScrollView and maybe along with the ui issue… not sure.

Essentially, what I am trying to achieve is what this app https://itunes.apple.com/us/app/pickles-paper-dolls/id490191800?mt=8 is doing. (Exactly what this is app is doing, actually )

So, what I have, at the top is buttons which when clicked, they hide themselves, that way users can’t click them again ( there’s got to be a better way to do this, I am sure ). So, when a top button is clicked, then I have an horizontal scrollView that appears which contains buttons.

All works as expected in the Simulator, but when I install the application on my iPad, running ios6 it ungracefully crashes! Without any warnings, nothing… just poof :frowning:

In my code, in order to hide, and repopulate the scrollView ( which I am using widget.newScrollView to create it, I do a lot of if statements[code] with [code] if (object1.isVisible ) then...

I have tried to strip out the ui library and doesn’t seem to make any difference. So I am assuming that the issue is with the widget.newScrollView library which, maybe, doesn’t play very well with buttons inside them? I don’t know.

Any help will be much appreciated.

Thanks in advance. [import]uid: 75258 topic_id: 31809 reply_id: 127545[/import]

Hello there again!

I am finding out that the problem isn’t necessarily what I thought it was. I think it has to do with the widget.newScrollView and maybe along with the ui issue… not sure.

Essentially, what I am trying to achieve is what this app https://itunes.apple.com/us/app/pickles-paper-dolls/id490191800?mt=8 is doing. (Exactly what this is app is doing, actually )

So, what I have, at the top is buttons which when clicked, they hide themselves, that way users can’t click them again ( there’s got to be a better way to do this, I am sure ). So, when a top button is clicked, then I have an horizontal scrollView that appears which contains buttons.

All works as expected in the Simulator, but when I install the application on my iPad, running ios6 it ungracefully crashes! Without any warnings, nothing… just poof :frowning:

In my code, in order to hide, and repopulate the scrollView ( which I am using widget.newScrollView to create it, I do a lot of if statements[code] with [code] if (object1.isVisible ) then...

I have tried to strip out the ui library and doesn’t seem to make any difference. So I am assuming that the issue is with the widget.newScrollView library which, maybe, doesn’t play very well with buttons inside them? I don’t know.

Any help will be much appreciated.

Thanks in advance. [import]uid: 75258 topic_id: 31809 reply_id: 127545[/import]