0
我創建一個自定義的UIButton這樣的:標題
ü
IButton *buttonDetailCarte = [UIButton buttonWithType:UIButtonTypeCustom];
buttonDetailCarte.frame = CGRectMake(8, 223, 304, 44);
[buttonDetailCarte setBackgroundImage:[UIImage imageNamed:@"cellule.png"] forState:UIControlStateNormal];
buttonDetailCarte.titleLabel.text = @" my Text";
buttonDetailCarte.titleLabel.font = [UIFont fontWithName:@"HelveticaNeue-Bold" size:17];
buttonDetailCarte.titleLabel.textColor = [UIColor colorWithRed:84.0/255 green:84.0/255 blue:84.0/255 alpha:1.0f];
buttonDetailCarte.backgroundColor = [UIColor clearColor];
buttonDetailCarte.titleLabel.textAlignment = UITextAlignmentLeft;
,我的文字不會出現在我的按鈕的問題,當我創建IB相同的按鈕,它出現?有什麼問題
你是偉大的人,謝謝。 – samir 2012-03-01 15:50:30