Objective-C class names with a +

前端 未结 2 474
我在风中等你
我在风中等你 2021-01-18 20:25

Does a class name, say UIImage+Something or UIImageView+Somethingelse, mean that it acts like a custom UIImage or UIImageView

2条回答
  •  自闭症患者
    2021-01-18 21:06

    This is a naming convention when using an Objective-C Category to extend the functionality of a class. See the article: http://macdevelopertips.com/objective-c/objective-c-categories.html for a much better explanation.

提交回复
热议问题