Problem I am trying to grasp the concept of delegates and protocols in Swift. So I have implemented my own […]
Tag: delegates
Using delegates to communicate between forms and networkcommunicator class
Problem I have multiple forms, each of which would like to send message through the network, using my NetworkCommunicator class’s […]
Sending a HttpRequest Message, and retrying in case of unauthorised
Problem This code simply sends a HttpRequest message and, if it comes back Unauthorized, gets a new login and tries […]
Possible memory-leak on a self-removable event handler
Problem A friend of mine asked me a question recently. He was needed to subscribe to an event of some […]
View controllers and delegation for a weightlifting app in Swift
Problem I’ve got several UIViewControllers that are trying to do too much so I’m trying to learn how to clean […]
Test questions – Number Generator, Linq, Delegates, Sequences
Problem I have recently been asked to do a test prior to an interview to test my C# skills. I […]
Shopping cart using events and delegates
Problem I am trying to learn events and delegates in C#. To do that I am trying to create a […]
Managing a wish list from an API
Problem I have a class that I use to manage a list to/from an API in Swift. Using a clean […]
using in generic delegates? [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Questions must involve real code that you own […]
iOS delegation design pattern
Problem I am working on a project that has a Model-View-Presenter structure and use the delegation design pattern that has […]