All Questions
Tagged with ios asynchronous-programming
3 questions
4
votes
1
answer
1k
views
Ways to do callback, when and where
I've recently started to do some more complicated programming with network-related work on iOS with Swift.
This introduced a lot of asynchronous code not only in networking but also some exchange of ...
5
votes
1
answer
422
views
What are the benefits of Android way of "saving memory" - explicitly passing Context objects everywhere?
Turned out, this question is not easy to formulate for me, but let's try.
In Android, pretty much any UI object depends on a Context, and has defined lifetime. Android can also destroy and recreate UI ...
3
votes
2
answers
1k
views
In an event-driven environment, how should a "cancel" function abort all further events?
In my iOS app, things are mostly driven by events.
The user presses a button
The app listens for an external device to be connected to the iOS device
Once the device is detected (is connected), an ...