2010-08-30 69 views

回答

1

如果你只是不想看到按钮的圆角矩形,然后将按钮类型设置为自定义。

+0

我做到了,但它仍然显示在它的后面按钮阴影我希望该用户只是看到它的文字,但不应该看起来像一个按钮仍然可以点击 – 2010-08-30 06:45:11

+0

thanka很多它完成 – 2010-08-30 07:12:09

1

您可以通过使用UILabel而不是UIButton来关注this workaround。这不直接回答你的问题,因为设置一个自定义类型应该,因为它不能发布一些代码?

+0

好的一个非常感谢 – 2010-08-30 07:10:37

1

创建类型UIButtonTypeCustom的按钮,并添加:

[myButton setBackgroundColor: [UIColor clearColor]]; 
0

您必须使用自定义按钮......

UIButton *custBtn = [UIButton buttonWithType:UIButtonTypeCusttom]; 
[custBtn setText:@"Sarabjit" forState:UIControlStateNormal]; 
[self.view addSubView:custBtn]; 
相关问题