tags:

views:

24

answers:

3

how can i make a button such that user only see the text on it but not the button in iphone sdk ? i tried to lower its alpha value but even then it appears a little

+1  A: 

If you just don't want to see the rounded rectangle of the button then set the button type to custom.

skorulis
i did it but it still shows button shadow on its back i want that user just see the text on it but should not appear to be a button still clickable
pankaj kainthla
thanka a lot it is done
pankaj kainthla
+1  A: 

You can follow this workaround by using a UILabel instead of a UIButton. This does not answer directly to your question, as setting a custom type should and since it does not can you post some code?

rano
good one thanks a lot
pankaj kainthla
+1  A: 

Create your button of type UIButtonTypeCustom and add:

[myButton setBackgroundColor: [UIColor clearColor]];
hotpaw2