Reputation: 192
I need a code that removes this default background, in IOS 7 there isn't a problem since I don't see this background.
Upvotes: 7
Views: 3877
Reputation: 1292
Try this,
UIButton *infoButton = [UIButton buttonWithType:UIButtonTypeCustom];
Upvotes: 2
Reputation: 14477
In iOS 7 default UIButton is like hyperlink in web page, with transparent background and no boarders. iOS 7 is actually border less now, If you want to have corners and backgrounds like iOS 6 use custom button. UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]
Now you can set background and other things if you want.
Upvotes: 0
Reputation: 1718
If you choose a button of type UIButtonTypeCustom
, there will be no default background
Upvotes: 17