<分区>
UIBarButtonItem 继承自 UIBarItem,它是 NSObject 的直接后代。
UIBarItem 只不过是一种特殊的 UIButton,您可以将其添加到 Bar。
来自 Apple 文档:
Items on a bar behave in a way similar to buttons (instances of UIButton). They have a title, image, action, and target. You can also enable and disable an item on a bar.
那么谁能解释一下为什么要“特殊”对待?
只是出于好奇。谢谢