草庐IT

ios - 如何将按钮图标添加到自定义键盘 iOS 8?

我正在为ios8创建自定义键盘。像这样创建键盘按钮UIButton*aBtn=[UIButtonbuttonWithType:UIButtonTypeCustom];[aBtnsetFrame:CGRectMake(x,30,btnWidth,btnHeight)];[aBtnsetImage:[UIImageimageNamed:@"A"]forState:UIControlStateNormal];[aBtnsetTitle:@"A"forState:UIControlStateNormal];[aBtnsetTitleColor:[UIColorblackColor]forSta