i\'m creating a button programmaticly for an iPad application. when i see the button, there looks to be a shadow type thing below it. what is it and how can i get rid of it?
Replace [UIButton buttonWithType:UIButtonTypeRoundedRect] with:
[UIButton buttonWithType:UIButtonTypeRoundedRect]
UIButton *myButton = [UIButton new];
or:
UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom];
You want to have your customized button. You can still make it with rounded corners if needed.