admin管理员组文章数量:1516870
重写代理的inputAccessoryView
-(UIView *)inputAccessoryView{
UIToolbar *toolBar = [[UIToolbar alloc]initWithFrame:CGRectMake(0, 0, boundsWidth, 44)];
UIBarButtonItem *flexSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:self action:nil];
UIBarButtonItem *rightButtonItem = [[UIBarButtonItem alloc] initWithTitle:LocalString(@"确定") style:UIBarButtonItemStylePlain target:self action:@selector(doIt)];
toolBar.items = [NSArray arrayWithObjects:flexSpace,rightButtonItem, nil];
return toolBar;
}
-(void)doIt
{
[taskMoneyCell.contentTextField resignFirstResponder];
}
版权声明:本文标题:轻松驾驭iOS输入视图技术,提升用户体验,赢得市场青睐 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.betaflare.com/biancheng/1771466965a3265849.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论