我有这样一类键盘:
@implementation Testkeyboard
-(void)drawRect:(CGRect)rect
{
UIImage *image = [UIImage imageNamed: @"FrameLetters2.png"];
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
我想创建一些方法来像这样更改背景*图像
-(void) changeImage1
-(void) changeImage2
如何实施?
提前致谢。