按钮不工作在iPhone5的底部 [英] Buttons are not working on bottom of iPhone5

查看:187
本文介绍了按钮不工作在iPhone5的底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的iPhone应用程式中,我在相机上使用了重叠式广告。
我有3个按钮底部捕获,闪光灯,取消
所有工作正常在iPhone 3.5设备。我已经改变了所有的Y位置根据iPhone 5.Buttons在适当的位置。的人都在工作

In my iPhone app,I have used an overlay on the camera. I have 3 buttons on bottom-capture,flash,cancel All working fine on iPhone 3.5" devices.I have changed the Y position for all according to iPhone 5.Buttons are at proper positions.But none of them are working

我对每个动作都设置了制动点,他们没有被调用
尝试最后3小时 - 但无法弄清楚

I have place brake point to each actions,they are not being called. Trying for last 3 hours-but could not figure out the issue.

有任何帮助吗?

EDIT 所有我的按钮到此

-(id)initWithFrame:(CGRect)frame {
  if (self = [super initWithFrame:frame]) {
   }
  }


推荐答案

根据我的理解,你的按钮是父视图的边界,因此他们没有响应触摸事件。你需要确保所有的按钮都在父视图的边界你需要增加父视图的边界区域以容纳按钮。尝试增加按钮的父视图的高度。

As per my understanding your buttons are out of it's parent view's bounds. Hence they are not responding to touch events. You need to make sure that all buttons are in parent view's bounds. You need to increase parent view's bounds area to accomodate buttons. Try increasing height of parent view of buttons.

这篇关于按钮不工作在iPhone5的底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆