开发者

What is "(id) sender"

开发者 https://www.devze.com 2023-04-06 21:02 出处:网络
What does (id)sender in -开发者_运维技巧(IBAction)PushButton: (id)sender stand for ?It\'s the object that triggered the event. E.g. sender will be the button that was pressed.sender is an object that

What does (id)sender in -开发者_运维技巧(IBAction)PushButton: (id)sender stand for ?


It's the object that triggered the event. E.g. sender will be the button that was pressed.


sender is an object that triggered an action, so in your case it is probably the button that was tapped.

0

精彩评论

暂无评论...
验证码 换一张
取 消