iOS 8用のカスタムキーボードを作成しています。このようなキーボードボタンを作成しています
UIButton *aBtn = [ UIButton buttonWithType:UIButtonTypeCustom ];
[aBtn setFrame:CGRectMake(x, 30, btnWidth, btnHeight)];
[aBtn setImage:[UIImage imageNamed:@"A"] forState:UIControlStateNormal];
[aBtn setTitle:@"A" forState:UIControlStateNormal];
[aBtn setTitleColor:[ UIColor blackColor] forState:UIControlStateNormal];
[aBtn setTitleColor:[ UIColor whiteColor] forState:UIControlStateHighlighted];
[aBtn addTarget:self action:@selector(btnClicked:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:aBtn];
私の問題は、画像がボタンに設定されていないことです。どうすればこれを解決できますか?
カスタム キーボード用に Xcode にイメージを追加できるようにするために、特別な手順は必要ですか?