Sunday 14 March 2010

iDevice says: Zzzzzzz

Today I came across a piece of powerful code that will be very relevant to my project but that I did not take into consideration;


application.idleTimerDisabled = YES;


What this bit of code does is stop the screen of the device from disappearing during the game. As the user will be concentrating hard during the game, obviously, there may not be a user interaction for a period of time and the screen will power down. This code prevents this interruption from occurring.

I came across this code while trying to implement GameKit into the project. What I discovered that understanding and utilising the intricacies of GameKit is a whole project to its self and not something that can be implemented and tested within two weeks.

Therefore I am now thinking that I'll have to abandon this feature of the project for now. However I will discuss it with Mr Smith first.

No comments:

Post a Comment