Hide/ change width/ change position of UIButton based on device type

Posted by Giles Van Gruisen on Stack Overflow See other posts from Stack Overflow or by Giles Van Gruisen
Published on 2010-04-11T01:52:33Z Indexed on 2010/04/11 2:23 UTC
Read the original article Hit count: 957

I'm using the new in-app SMS features in my iPhone app, but obviously iPod Touches aren't able to send and receive SMS without support of a third party app.

I know all well how to detect the device and how to hide a UIButton, but what I do not know is how to change the width of the others.alt text

Above are the three icons. The one on the far rights needs to be hidden on an iPod Touch, and the other two need to adjust size/ position to fill the remaining space.

Any tips on programatically changing the position and width of a UIButton is greatly appreciated. Thanks!

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about uibutton