我正在使用我的应用程序来相应地自定义按钮。但是,一旦我相应地更改我的按钮,现在它变得没有反应。你可以看到我的代码如下。顺便说一下,当我在iPhone 4上运行时,此按钮仍然有效。这真的很奇怪! 一旦我改变了我的按钮位置它的作品,但它不会工作我想要的位置!自定义UIButton以兼容iPhone 5
float screenSizeHeight=[UIScreen mainScreen].bounds.size.height;
if(screenSizeHeight==568)
[positionButton setFrame:CGRectMake(184,280,77,30)];
if(screenSizeHeight==480)
[positionButton setFrame:CGRectMake(184,240,77,30)];
手袋按钮不工作!
对'positionButton'使用'bringSubviewToFront'。 – 2013-05-07 04:52:03
尽管我改变了它的位置,仍然没有反应!也[self.view bringSubviewToFront:positionButton];仍然无法正常工作 – casillas 2013-05-07 04:54:32
您正在更换x位置礼仪?但宽度是相同的(320只)..所以......为什么你必须改变xPostion – 2013-05-07 04:56:06