tenDigitKeyboard.m
-(IBAction)pressedKey:(UIbutton *)sender{ [delegate pressedKey:sender.tag];}
其中delegate被定义为`ID delegate;
然后在代表中我做…
-(voID)pressedKey:(NSInteger)key{ Nsstring * bufferString = model.string; if (key == -1) {//delete model.string = [bufferString substringWithRange:NSMakeRange(0,[bufferString length]-1)]; }else{ //will need to change the following to lookup key value based on a lookup of the button.tag model.string = [bufferString stringByAppendingFormat:@"%i",key]; } [self update];//updates the vIEw}
我从http://www.teehanlax.com/blog/iphone-gui-psd-v4/获得了键盘按钮图稿
总结以上是内存溢出为你收集整理的iphone – 自定义iPad键盘,看起来像系统键盘全部内容,希望文章能够帮你解决iphone – 自定义iPad键盘,看起来像系统键盘所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)