语言特性iOS Developer

Attributes in Clang

2016-05-25  本文已影响426人  邹浩

Clang官方文档:Clang documentation

The attribute to designate that a method requires a “call to super
” in the overriding method in the subclass.

  - (void)foo __attribute__((objc_requires_super));

This attribute specifies that the Objective-C class to which it applies is visible to the Objective-C runtime but not to the linker. Classes annotated with this attribute cannot be subclassed and cannot have categories defined for them.

上一篇 下一篇

猜你喜欢

热点阅读