What is Delegate Means in Objective-C (IOS Application Development)

Delegate Means in Objective-C

What-is delegate-means

A delegate allows one object to send messages to another object when an event happens. For example, if you’re downloading data from a web site asynchronously using the NSURLConnection class. NSURLConnection has three common delegates:

– (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error

– (void)connectionDidFinishLoading:(NSURLConnection *)connection

– (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response


Discover more from mycodetips

Subscribe to get the latest posts sent to your email.

Discover more from mycodetips

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top