Can an Objective-C protocol have category? -


objective-c category can implement protocol. reverse true - can objective-c protocol have category?

no.

a protocol can have @required , @optional methods, similar compiler point of view (category methods aren't verified compiler in same way defined , continuation category methods are).

protocols can extend other protocols. instance, protocol define should extend <nsobject>.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -