我正在使用我的應用程序來相應地自定義按鈕。但是,一旦我相應地更改我的按鈕,現在它變得沒有反應。你可以看到我的代碼如下。順便說一下,當我在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