Like many other GUI systems, the code you write for the iPhone application runs in the loop that the system provides. When writing a program without a GUI, there is usually a main () function or similar. On the iPhone, you do not have this because it is provided by the system and it will trigger an event loop. All you provide is callbacks to respond to events.
, , , API , .. .