Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以完全省略参数吗?我似乎在我的 IBAction 方法中找不到它的用途。
是的,如果你不想要它,你可以省略它:
-(IBAction)action{ // some stuff }
虽然它可以在很多情况下派上用场
资料来源:苹果文档