Monday, June 18, 2012

To the Device and Beyond?

Just deployed my code to my phone, didn't expect it to work right away but wished to have some pleasant surprises, no, there were issues more than one, and it made me scratching my head wondering.
As you could see on the device the background image for the game board was not rendered as in the simulator, also the image for one of the button was not rendered either........

After digging around, I found the issues:
1)the iPhone simulator is NOT case sensitive but the device is case senitive
2)earlier I used initWithFormat to get the path to the background image, it worked in the simulator but failed on the device, I replaced that with stringByAppendingPathComponent, and now it is working both in the simulator and on the device.

No comments:

Post a Comment