Using Delegates with Views and Other Classes

When you create iPhone applications, you use delegates to implement application-specific behavior for “generic” views or classes. The table includes all known available delegates used in iPhone application development, though others may be possible. Exceptions to when you need to use a delegate are shown in the Special Use column.

































































































































































































































ClassDelegate(s) ProtocolSpecial Use
ABPeoplePickerNavigationController

ABNewPersonViewController

ABNewPersonViewController

ABUnknownPersonViewController
ABPeoplePickerNavigationControllerDelegate

ABNewPersonViewControllerDelegate

ABNewPersonViewControllerDelegate

ABUnknownPersonViewControllerDelegate

AVAudioRecorderAVAudioRecorderDelegate
AVAudioSessionAVAudioSessionDelegate
CAAnimationNone
CAAnimationGroupNone
CALayerNone
CLLocationManagerCLLocationManagerDelegate
EAAccessoryEAAccessoryDelegate
GKSessionGKSessionDelegate
GKPeerPickerControllerGKPeerPickerControllerDelegate
NSErrorNSErrorRecoveryAttempting
MKMapViewMKAnnotation

MKMapViewDelegate
MkReverseGeocoderMKReverseGeocoderDelegate
NSNetService

NSNetServiceBrowser
NSNetServiceDelegate

NSNetServiceBrowserDelegate

NSStreamNSStreamDelegate
NSPort

NSMachPort
NSPortDelegate

NSMachPortDelegate

NSFetchedResultsControllerNSFetchedResultsControllerDelegate
NSKeyedArchiver

NSKeyedUnarchiver
NSKeyedArchiverDelegate

NSKeyedUnarchiverDelegate

NSURLConnectionNone
MFMailComposeViewControllerMFMailComposeViewControllerDelegate
SKRequest

SKProductsRequest
SKRequestDelegate

SKProductsRequestDelegate

UIAccelerometerUIAccelerometerDelegate
UIActionSheetUIActionSheetDelegate
UIAlertViewUIAlertViewDelegate
UIApplicationUIApplicationDelegateAlso used for push notifications
UIImagePickerUIImagePickerControllerDelegate
UINavigationBarUINavigationBarDelegateTo push or pop view controllers
UIPickerViewUIPickerViewDataSource

UIPickerViewDelegate
UIResponderUIResponderStandardEditActionsSupport for Copy, Paste, and Select
UIScrollViewUIScrollViewDelegateUnder some circumstances
UISearchDisplayControllerUISearchDisplayDelegate
UISearchBarUISearchBarDelegate
UITabBarUITabBarControllerDelegateTo customize a tab bar
UITableViewUITableViewDataSource

UITableViewDelegate
UITextFieldUITextFieldDelegateTo put away the keyboard
UITextViewUITextViewDelegateTo examine text being edited
UISearchBarUISearchBarDelegate
UIWebViewUIWebViewDelegate
MPMediaPickerControllerMPMediaPickerControllerDelegate
NSXMLParserNSXMLParserDelegate








dummies

Source:http://www.dummies.com/how-to/content/using-delegates-with-views-and-other-classes0.html

No comments:

Post a Comment