【问题标题】:Perform Action Simultaneously when touchdown the UIButton触碰 UIButton 时同时执行动作
【发布时间】:2011-03-01 07:11:36
【问题描述】:

喂... 当我按下同时执行的操作的按钮时,我有一个带有一些操作的 UIButton。

谁知道请回答这个..

【问题讨论】:

    标签: iphone


    【解决方案1】:

    当您按下按钮时,您可以通过以下方式添加操作。

    但是,对我来说,你的问题并不清楚......

        UIButton * myButton = [[UIButton alloc] init];
    [myButton addTarget:self action:@selector(doSomeActionMethod) forControlEvents:UIControlEventTouchDown];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-11
      • 2014-12-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多