2010-08-30 70 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]; 
相關問題