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 uilabels 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.

enter image description here


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -