Following the solution (the highest-voted answer actually) at UITextField Example in Cocos2d, I managed to do it except the line
[[[UIApplication sharedAppli
-[UIApplication delegate] returns an object of type id, so the compiler only knows the methods that objects of that type respond to, even thought your custom delegate responds to specifyStartLevel. You can either ignore the warning, or cast the return value of -[UIApplication delegate]:
[(YourCustomAppDelegate *) [[UIApplication sharedApplication] delegate] specifyStartLevel];