iphone - 获取被触摸的按钮的标题

标签 iphone ios c

我的 iPhone 应用程序上有三个按钮,我想以编程方式访问被触摸的按钮的标题。

最佳答案

在您的按钮的操作方法中,只需使用 sender.currentTitle。

关于iphone - 获取被触摸的按钮的标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11979406/

相关文章:

c - 将字符串中的数字替换为符号

iphone - 引脚移动后 MKMapView 刷新

ios - 无法更改 UIPopover 的大小?

c - 当 float 大于其精度时,它被称为什么?

创建运行批处理命令并将其传递给第二个 C 程序的 C 程序

ios - 为什么在对键进行排序时出现错误 "Incompatible pointer types assigning to ' NSMutableArray *' from ' NSArray *'."?

iphone - iOS 开发 : How can I get a Facebook wall post to show in the friend's news feed?

iphone - SKPaymentTransactionObserver 没有在应用切换时得到回调

iOS 应用程序在 Facebook 登录时启动另一个应用程序

objective-c - 将文本字段中的数据插入 SQLite 数据库