iPhone 6 秒未接收到 UIButton 上的任何触摸

iPhone 6s not receiving any touches on UIButtons

我的应用程序适用于除某些 iPhone 6s 以外的所有设备。当用户尝试点击按钮时,什么也没有发生。我检查了按钮框架,一切正常,但当用户点击按钮时仍然没有任何反应。我认为这与触摸有关。任何形式的帮助都将不胜感激。谢谢

If you have used any UIButton Category and Overrides the Touch methods then try adding:

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
        [super touchesBegan:touches withEvent:event];
}


- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
        [super touchesMoved:touches withEvent:event];
}

-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
        [super touchesEnded:touches withEvent:event];
}