for (UIView *window in [UIApplication sharedApplication].windows) {
if([window isKindOfClass:NSClassFromString(@"UIRemoteKeyboardWindow")]) {
[window addSubview:self.searchButton];
}
}
for (UIView *window in [UIApplication sharedApplication].windows) {
if([window isKindOfClass:NSClassFromString(@"UIRemoteKeyboardWindow")]) {
[window addSubview:self.searchButton];
}
}
本文标题:在系统键盘的任意位置添加按钮
本文链接:https://www.haomeiwen.com/subject/pgydtxtx.html
网友评论