1
我畫一個自定義按鈕:繪製自定義按鈕
UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom];
myButton.frame = CGRectMake(10,10,44,70);
[myButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
[myButton setTitle:@"Order" forState:UIControlStateNormal];
當我上回地面顏色是不會改變的按鈕攻。我是否需要爲正常狀態和選定狀態使用不同的圖像?這裏有什麼竅門?
嗯......我明白了。謝謝! – Abhinav 2010-12-01 00:09:29