[Resolved] Is this normal

So, I was having trouble getting my back button to work. I finally got it working. now I cant get it to go forward again. lol Im working on it though. But my question is Before I added my back button when I tested it on my iphone it worked fine, Now that I have the back button after the first screen it goes blank but works fine on the simulator. What could be causing this? Is it because the next bage button isn’t properly working yet? [import]uid: 69302 topic_id: 31057 reply_id: 331057[/import]

Easier with code.

Did you removed the last screen? or just changed? [import]uid: 116842 topic_id: 31057 reply_id: 124152[/import]

I will try to post code, internet at work is intermittent. But no I didnt remove anything. I just added a go back button to my scene2 so that when users press it, it goes to scene1. But as I said in previous post, I have not gotten the button working on scene1 to go back to scene2 once user goes back. So Im not sure if that is why the screen is blank.( because the button to return to scene2 is not working) But again it works fine on the simulator( the screen is not blank). Which, code do you need to see. the one with back button? or the one the back button take the users to when they hit back? [import]uid: 69302 topic_id: 31057 reply_id: 124154[/import]

The number 1 cause of things working in the simulator and not on device is a filename being case sensitive.

The filenames on a mac are not case sensitive, so “Button.png” and “button.png” are the same files. However on iOS and Android, the file system is case sensitive thus “Button.png” and “button.png” are different filenames.

So check your images and scene names to make sure they match what is actually on the file system.

[import]uid: 19626 topic_id: 31057 reply_id: 124166[/import]

There are two popular APIs to manage scenes: soryboard and director.
if you’re not sure, try to find one of these words inside your code.

now, are you using the storyboard API to switch scenes?
please read the formidable manual: http://docs.coronalabs.com/api/library/storyboard/index.html
and ask your questions here: http://developer.coronalabs.com/forums/storyboard

in case you use the director class,
look here http://developer.coronalabs.com/code/director-class-10
and ask here http://developer.coronalabs.com/forums/director-class

cheers
-finefin
[import]uid: 70635 topic_id: 31057 reply_id: 124222[/import]

Hello Robmiracle, I am going to try the case sensitive to see if that works because I did change it.
@canupa.com- No, I do not believe I am using the storyboard API to switch scenes. Should I? But I am using storyboard to build.
I am just simply using a back and next button to change scenes. because I am only switching between scene1 and scene2. scene1 is the instructions. So once the user goes to scene2 and they forget how it works they can go back to scene1(instructions).

But I will look at these API’s and see if they help.

Thanks [import]uid: 69302 topic_id: 31057 reply_id: 124225[/import]

@ Rob thanks, it was something case sensitive. I wish it didnt work on the simulator so I would have known that. Now all I have to do do is figure out this back button. [import]uid: 69302 topic_id: 31057 reply_id: 124244[/import]

Well this is the fault of Apple for using a file system where case doesn’t matter (and Window’s has a similar issue). Programs like Corona have no convenient way of knowing if the filenames are different. It’s quite frustrating but its a lesson that we call all take away… If it work in the sim but not on device, check filenames first!

[import]uid: 19626 topic_id: 31057 reply_id: 124247[/import]

Definitely a lesson learned! Mental note taken. Thanks again [import]uid: 69302 topic_id: 31057 reply_id: 124250[/import]

Easier with code.

Did you removed the last screen? or just changed? [import]uid: 116842 topic_id: 31057 reply_id: 124152[/import]

I will try to post code, internet at work is intermittent. But no I didnt remove anything. I just added a go back button to my scene2 so that when users press it, it goes to scene1. But as I said in previous post, I have not gotten the button working on scene1 to go back to scene2 once user goes back. So Im not sure if that is why the screen is blank.( because the button to return to scene2 is not working) But again it works fine on the simulator( the screen is not blank). Which, code do you need to see. the one with back button? or the one the back button take the users to when they hit back? [import]uid: 69302 topic_id: 31057 reply_id: 124154[/import]

The number 1 cause of things working in the simulator and not on device is a filename being case sensitive.

The filenames on a mac are not case sensitive, so “Button.png” and “button.png” are the same files. However on iOS and Android, the file system is case sensitive thus “Button.png” and “button.png” are different filenames.

So check your images and scene names to make sure they match what is actually on the file system.

[import]uid: 19626 topic_id: 31057 reply_id: 124166[/import]

There are two popular APIs to manage scenes: soryboard and director.
if you’re not sure, try to find one of these words inside your code.

now, are you using the storyboard API to switch scenes?
please read the formidable manual: http://docs.coronalabs.com/api/library/storyboard/index.html
and ask your questions here: http://developer.coronalabs.com/forums/storyboard

in case you use the director class,
look here http://developer.coronalabs.com/code/director-class-10
and ask here http://developer.coronalabs.com/forums/director-class

cheers
-finefin
[import]uid: 70635 topic_id: 31057 reply_id: 124222[/import]

Hello Robmiracle, I am going to try the case sensitive to see if that works because I did change it.
@canupa.com- No, I do not believe I am using the storyboard API to switch scenes. Should I? But I am using storyboard to build.
I am just simply using a back and next button to change scenes. because I am only switching between scene1 and scene2. scene1 is the instructions. So once the user goes to scene2 and they forget how it works they can go back to scene1(instructions).

But I will look at these API’s and see if they help.

Thanks [import]uid: 69302 topic_id: 31057 reply_id: 124225[/import]

@ Rob thanks, it was something case sensitive. I wish it didnt work on the simulator so I would have known that. Now all I have to do do is figure out this back button. [import]uid: 69302 topic_id: 31057 reply_id: 124244[/import]

Well this is the fault of Apple for using a file system where case doesn’t matter (and Window’s has a similar issue). Programs like Corona have no convenient way of knowing if the filenames are different. It’s quite frustrating but its a lesson that we call all take away… If it work in the sim but not on device, check filenames first!

[import]uid: 19626 topic_id: 31057 reply_id: 124247[/import]

Definitely a lesson learned! Mental note taken. Thanks again [import]uid: 69302 topic_id: 31057 reply_id: 124250[/import]