KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
- (void)someMethod { if ( [delegate respondsToSelector:@selector(operationShouldProceed)] ) { if ( [delegate operationShouldProceed] ) { // do something appropriate } } } The documentation says: The precaution is necessary only for optional methods in a formal protocol or methods of an informal protocol What does it mean? If I use a formal protocol I can just use [delegate myMethod] ?
Tags (comma-separated)
Save Edits
Cancel