如何更改inputview的return键的title ios
1个回答
展开全部
自己做一个按键的image,贴在键盘的return键的位置。
可以参考在数字键盘上实现DONE键的做法
NSArray *ws = [[UIApplication sharedApplication] windows];
for(UIView *w in ws){
NSArray *vs = [w subviews];
for(UIView *v in vs){
if(0 ==strcmp(object_getClassName(v), "UIKeyboard")){
CGRect frame = CGRectMake(0.0f, 162.0f, 106.0f, 53.0f);
[doneButton setFrame:frame];
[v addSubview:doneButton];
}
}
}
可以参考在数字键盘上实现DONE键的做法
NSArray *ws = [[UIApplication sharedApplication] windows];
for(UIView *w in ws){
NSArray *vs = [w subviews];
for(UIView *v in vs){
if(0 ==strcmp(object_getClassName(v), "UIKeyboard")){
CGRect frame = CGRectMake(0.0f, 162.0f, 106.0f, 53.0f);
[doneButton setFrame:frame];
[v addSubview:doneButton];
}
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询