【问题标题】:UIButton or UIBarButtonItem didn't response well on iPhone 6s and 6s plusUIButton 或 UIBarButtonItem 在 iPhone 6s 和 6s plus 上反应不佳
【发布时间】:2016-09-05 01:31:40
【问题描述】:
UIBarButtonItem *rightBarItem = [[UIBarButtonItem alloc] initWithTitle:@"Bonus"
                                                                 style:UIBarButtonItemStylePlain
                                                                target:self
                                                                action:@selector(clickRightBarItem:)];
self.navigationItem.rightBarButtonItem = rightBarItem;

我只是在其他视图上使用系统 UIBarButtonItem 和一些 UIButtons,在除 6s 和 6s plus 之外的任何其他 iPhone 上都是正常的。 在 6s 和 6s plus 上,您应该非常非常非常轻柔地轻敲,然后它会响应。 那么有人知道吗?

【问题讨论】:

    标签: ios objective-c iphone uibutton


    【解决方案1】:

    得到它。 原因是我在某处使用了一个类别,它会影响所有按钮。(UIButton+NMCategory)。 类别覆盖了触摸响应方法,处理不好。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-12-06
      • 2016-11-12
      • 2016-04-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多