Usando delegados com vistas e outras classes

Quando você cria aplicativos para iPhone, você usa delegados para implementar comportamento específico do aplicativo para # 147-generic # 148- vistas ou classes. A tabela inclui todos os delegados disponíveis conhecidos usados ​​no desenvolvimento de aplicativos iPhone, embora outros possam ser possíveis. As excepções a quando você precisa usar um delegado são mostrados na coluna Uso Especial.

ClasseDelegado (s) protocoloUse especial
ABPeoplePickerNavigationController
ABNewPersonViewController
ABNewPersonViewController
ABUnknownPersonViewController
ABPeoplePickerNavigationControllerDelegate
ABNewPersonViewControllerDelegate
ABNewPersonViewControllerDelegate
ABUnknownPersonViewControllerDelegate
AVAudioRecorderAVAudioRecorderDelegate
AVAudioSessionAVAudioSessionDelegate
CAAnimationNenhum
CAAnimationGroupNenhum
CALayerNenhum
CLLocationManagerCLLocationManagerDelegate
EAAccessoryEAAccessoryDelegate
GKSessionGKSessionDelegate
GKPeerPickerControllerGKPeerPickerControllerDelegate
NSErrorNSErrorRecoveryAttempting
MKMapViewMKAnnotation
MKMapViewDelegate
MkReverseGeocoderMKReverseGeocoderDelegate
NSNetService
NSNetServiceBrowser
NSNetServiceDelegate
NSNetServiceBrowserDelegate
NSStreamNSStreamDelegate
NSPort
NSMachPort
NSPortDelegate
NSMachPortDelegate
NSFetchedResultsControllerNSFetchedResultsControllerDelegate
NSKeyedArchiver
NSKeyedUnarchiver
NSKeyedArchiverDelegate
NSKeyedUnarchiverDelegate
NSURLConnectionNenhum
MFMailComposeViewControllerMFMailComposeViewControllerDelegate
SKRequest
SKProductsRequest
SKRequestDelegate
SKProductsRequestDelegate
UIAccelerometerUIAccelerometerDelegate
UIActionSheetUIActionSheetDelegate
UIAlertViewUIAlertViewDelegate
UIApplicationUIApplicationDelegateTambém usado para notificações push
UIImagePickerUIImagePickerControllerDelegate
UINavigationBarUINavigationBarDelegatePara empurrar ou pop controladores de vista
UIPickerViewUIPickerViewDataSource
UIPickerViewDelegate
UIResponderUIResponderStandardEditActionsSuporte para copiar, colar e Selecionar
UIScrollViewUIScrollViewDelegateSob algumas circunstâncias
UISearchDisplayControllerUISearchDisplayDelegate
UISearchBarUISearchBarDelegate
UITabBarUITabBarControllerDelegatePara personalizar a barra de abas
UITableViewUITableViewDataSource
UITableViewDelegate
UITextFieldUITextFieldDelegatePara marcar o teclado
UITextViewUITextViewDelegatePara examinar o texto a ser editado
UISearchBarUISearchBarDelegate
UIWebViewUIWebViewDelegate
MPMediaPickerControllerMPMediaPickerControllerDelegate
NSXMLParserNSXMLParserDelegate

menu