Video: Learning iOS: Create your own app with Objective-C! by Tianyu Liu 2024
En del af iOS 6 Application Development For Dummies Cheat Blad
Følgende afsnit omfatter delegerede, der anvendes i iOS applikationsudvikling. Undtagelser til, hvornår du skal bruge en delegat, vises i kursiv i kolonnen Delegatprotokol.
Class | delegat (er)
Protokol |
---|---|
ABPeoplePicker
NavigationController ABNewPersonView Controller ABNewPersonView Controller ABUnknownPerson viewcontroller |
ABPeoplePicker
Navigation ControllerDelegate ABNewPersonView ControllerDelegate ABNewPersonView ControllerDelegate ABUnknownPerson viewcontroller delegeret |
AVAudioRecorder | AVAudioRecorder
delegeret |
AVAudioSession | AVAudioSession
delegeret |
CAAnimation | Ingen |
CAAnimationGroup > Ingen | CALayer |
Ingen | CLLocationManager |
CLLocation | ManagerDelegate
EAAccessory |
EAAccessory | delegeret
GKGameCenterView |
Controller
GKGameCenter |
ControllerDelegate
, når afspilleren dis savner brugercentret Game Center. Ny til iOS 6. GKSession |
GKSPelerController | GKPeerPicker |
ControllerDelegate | NSError
NSErrorRecovery |
Forsøg | MKMapView
MKAnnotation > MKMapView |
delegeret | MkReverseGeocoder |
MKReverse
GeocoderDelegate |
|
NSNetService |
NSNetServiceBrowser |
NSNetService
Delegeret
NSNetService |
BrowserDelegate
NSStream NSStreamDelegate NSPort |
NSMachPort | NSPortDelegate |
NSMachPort
delegeret |
NSFetchedResults
Controller NSFetchedResults |
ControllerDelegate
NSKeyedArchiver |
NSKeyedUnarchiver
NSKeyedArchiver |
delegeret
NSKeyedUnarchiver |
delegeret
NSURLConnection > Ingen MFMailComposeView Controller |
MFMailCompose | viewcontroller |
delegeret
SKRequest |
SKProductsRequest
SKRequestDelegate SKProductsRequest |
delegeret
UIAccelerometer |
UIAccelerometer
Delegatør UIAction |
UIAtertView | UIAlertView
Delegatør |
UIApplication | UIApplication
Delegeret |
Bruges også til push | meddelelser
UIImagePicker |
UIImagePicker | ControllerDelegate
UICollectionView UINavigationBar UINavigationBar |
Delegeret | For at skubbe eller pope visning controllers
UIPickerView |
UIPickerViewData | |
Kilde | UIPickerView
Delegatør UIResponder UIResponder |
StandardEditActions | Support til kopi,
Indsæt og vælg < UIScrollView |
UIScrollView
Delegatør |
|
Under nogle | omstændigheder
UIScrollView Tilgængelighed Delegeret |
Metoder du kan | implementere for at give
tilgængelighed < - mation til en Scroll visning.Ny til iOS 6. |
UISearchDisplay
Controller UISearchDisplay Delegeret UISearchBar UISearchBar Delegatør UITabBar UITabBarController |
|
Delegatør
Tilpas en tabulator |
UITextView
UITableView |
DataSource | UITableView
Delegeret |
UITextField | UITextFieldDelegate
For at fjerne tastaturet |
UITextView | UITextViewDelegate
For at undersøge teksten |
bliver redigeret
UISearchBar |
|
UISearchBar | Delegatør
UIWebView UIWebViewDelegate |
MPMediaPicker | Controller
MPMediaPicker ControllerDelegate |
NSXMLParser | NSXMLParser
delegeret |