Welcome to Apple iPhone news and Chat discussion forums. iPhone Discussions is dedicated to iPhone,Talk about iPhone modifications,software,reviews,Support, iPhone news , iphone mobile,iPhone OS and more about get uibutton name...
I have a simple problem ... but its turning into a very difficult problem .. i have a button inside uitableviewcell and want to change its color through code .... i could aceive it by changing its background image. But its kinna hazy ... its not the solid color ... and when i use cell.button setBackgroundColor:UIcolor redColor ... the button color does not change ...any help appreciatedthanks macbook intel iPhone OS 3.1.2
Ive determined that if I set the uibutton flags field autoresizeToFit (via the debugger) then the uibutton will automatically resize based on the size of the text I put in it. Unfortunately thats a private field. Im interested in doing this because Im localizing the UIButtons title and that title is variable length. Yes, I could localize the .xib file that Im using but this is the only element of the .xib file which needs to be resized in this manner and localizing the entire .xib file would be complete overkill (and suck up pointless space). So Id like to change the size of the uibutton programatically to match the width of the title.Is there an official mechanism to do this?Casey MacBook Mac OS X (10.5.5)
