What is an event loop or loop cycle?

In the development of the iPhone, I came across these terms

event loop, cycle loop

. Can anyone explain what this is?

+3
source share
2 answers

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 , .. .

+5

Source: https://habr.com/ru/post/1769276/


All Articles