7

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

user1582281
  • 192
  • 2
  • 11

3 Answers3

17

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

slecorne
  • 1,720
  • 1
  • 11
  • 14
2

Try this,

UIButton *infoButton = [UIButton buttonWithType:UIButtonTypeCustom];
Raj Subbiah
  • 1,292
  • 11
  • 20
0

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.

Adnan Aftab
  • 14,377
  • 4
  • 45
  • 54