Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIButton shows default white background with round corners in IOS 6 but no in IOS 7

Tags:

ios

ios7

ios6

I need a code that removes this default background, in IOS 7 there isn't a problem since I don't see this background.

like image 722
user1582281 Avatar asked Nov 28 '13 11:11

user1582281


2 Answers

If you choose a button of type UIButtonTypeCustom, there will be no default background

like image 77
slecorne Avatar answered Nov 15 '22 16:11

slecorne


Try this,

UIButton *infoButton = [UIButton buttonWithType:UIButtonTypeCustom];
like image 33
Raj Subbiah Avatar answered Nov 15 '22 18:11

Raj Subbiah