ios - UIButton is partially red when enabling Show Blended Layers -
i improve performance making views opaque appropriate. have uibutton
showing red in simulator - it's red around text of button, not entire frame. in storyboard, i've enabled opaque , changed background color clear white, yet still shows red in simulator.
how change green it's opaque , not trying work transparency?
note uilabel
s green when change background , opaque yes.
i use following code in case:
[button.titlelabel setopaque:yes]; [button.titlelabel setbackgroundcolor:[uicolor whitecolor]]; // or which-you-want-color
obviously, should keep weak reference button.
pretty works. button size smaller screenshot size.
Comments
Post a Comment