首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏大宇笔记

    IOS UITextField 选择出生日期

    @property (nullable,readwrite,strong)UIView *inputView;              @property (nullable,readwrite, UIBarButtonSystemItemDonetarget:selfaction:@selector(done)]; accessoryView.items =@[flex,right]; self.brithdayInputView.inputView

    1.5K10发布于 2019-01-15
  • 来自专栏進无尽的文章

    UI篇-UIResponder之事件传递和响应精析

    因此我们自建一个UITableViewCell类,并声明inputAccessoryView和inputView为readwrite的,并且重写它们的get方法,这样在某个tableviewcell变成第一响应者时 ,它就会自动呼出inputView和inputAccessoryView; @interface MyTableViewCell : UITableViewCell<UIPickerViewDelegate ,UIPickerViewDataSource> { UIToolbar *_inputAccessoryView; UIPickerView *_inputView; } @property _inputView) { UIPickerView * pickView = [[UIPickerView alloc]initWithFrame:CGRectMake(0, 200 = self; pickView.showsSelectionIndicator = YES; return pickView; } return _inputView

    3.5K30发布于 2018-09-12
  • 来自专栏iOS开发~

    iOS_监测键盘的显示和隐藏变化,并获得键盘高度,改变tableView的frame和偏移

    }#pragma mark 根据键盘高度 改变 输入框和表格 的位置- (void)changeInputViewTableViewPlaceWith:(CGFloat)height { [self.inputView ) { make.top.equalTo(self.view).offset(64); make.width.equalTo(self.view); make.bottom.equalTo(self.inputView.mas_top

    1.3K20编辑于 2022-07-20
  • 来自专栏一“技”之长

    iOS自定义的emoji表情键盘 原

    切换系统键盘和自定义的表情键盘         UITextField和UITextView都会有下面这个属性和方法: @property (nullable, readwrite, strong) UIView *inputView ;    - (void)reloadInputViews; inputView我们可以设置textView和textField成为第一响应时的弹出附件,如果我们不设置或者设置为nil,则会弹出系统键盘         return;     }     if (isEmoji==NO) {         isEmoji=YES;         //呼出表情         _textView.inputView =bgView;         [_textView reloadInputViews];     }else{         isEmoji=NO;         _textView.inputView

    3.7K10发布于 2018-08-15
  • 来自专栏iOS 备忘录

    动画效果:snapshotViewAfterScreenUpdates的使用

    信件详情快照慢慢变小到和信件快照同样大小;然后消失,信件快照显示;c:信件快照位移到信件的位置,然后消失; 代码 /**  *  @brief 返回对应view的snapshot  *  *  @param inputView 输入的view  *  *  @return 返回的snapshot  */ - (UIView *)customSnapshotFromView:(UIView *)inputView {     UIView *snapshot = [inputView snapshotViewAfterScreenUpdates:YES];     snapshot.layer.masksToBounds =

    1.8K22发布于 2021-03-01
  • 来自专栏iOS开发干货分享

    iOS表情键盘的完整实现

    其实系统已经提供好了接口给我们直接使用,UITextView和UITextField都有的inputView和inputAccessoryView就是用来实现自定义键盘的,这两个属性的定义如下: // @property (nullable, readwrite, strong) UIView *inputView; @property (nullable, readwrite PPKeyboardType)toType { switch (toType) { case PPKeyboardTypeSystem: self.textView.inputView 方法会立刻进行键盘的切换 break; case PPKeyboardTypeSticker: self.textView.inputView

    2.6K30发布于 2019-06-14
  • 来自专栏IT架构圈

    「小程序JAVA实战」小程序注册界面的开发(29)

    --账号--> <view class="<em>inputView</em>"> <image class="nameImage" src="../.. --密码--> <view class="inputView"> <image class="keyImage" src="../.. ; } }) page { background-color: whitesmoke; } .login-img { width: 750rpx; } /*表单内容*/ .<em>inputView</em>

    1.8K20发布于 2018-12-27
  • 开发体育赛事直播系统:炫彩弹幕直播间界面技术实现方案

    UITableViewCellSeparatorStyleNone; [self.view addSubview:self.barrageTableView]; // 弹幕输入框 UIView *inputView initWithFrame:CGRectMake(0, self.view.bounds.size.height * 0.9, self.view.bounds.size.width, 50)]; inputView.backgroundColor addTarget:self action:@selector(sendBarrage) forControlEvents:UIControlEventTouchUpInside]; [inputView addSubview:self.barrageTextField]; [inputView addSubview:sendButton]; [self.view addSubview:inputView

    86900编辑于 2025-03-29
  • 来自专栏大宇笔记

    IQKeyboardManager 获取完成按钮的解决办法

    addressLabelText.inputView = pickerView 我指定了textFlied的inputView

    4.1K40发布于 2019-02-26
  • 来自专栏码生

    iOS键盘防键盘遮挡库 KKInputAvoidKeyBoard 每个 UITextField 都可以自己控制

    isAvoidKeyBoardEnable: Bool /* 键盘顶起后,底部距离键盘的距离 */ var avoidKeyBoardDistance: CGFloat 并且我们公司做各种信息录入,有大量的输入框,自定义键盘,自定义 inputView

    1.7K40发布于 2018-11-21
  • 来自专栏月亮与二进制

    iOS键盘、选取器上的工具栏

    self.pickerText.placeholder = @"请输入点击选择"; self.pickerText.inputAccessoryView = self.toolBar; self.pickerText.inputView self.pickerText]; 这其中有两行新的东西: self.pickerText.inputAccessoryView = self.toolBar; self.pickerText.inputView 另一行是将省市区选取器作为inputView,这样点击输入就会直线显示选取器,而不是键盘了。至于选取器怎么做,不是本文的重点,在文末之间下载示例工程看吧。

    2.3K10发布于 2021-11-23
  • 来自专栏码生

    react native 无侵入 彻底解决键盘遮挡问题

    无论原生还是h5以及ReactNative 中对于键盘的遮挡问题一直是个难题 而即便对于一些出名的第三方库,在对于自定义inputView和RN中都有异常情况 RN中键盘遮挡问题也是个热门,google 并且我们公司做各种信息录入,有大量的输入框,自定义键盘,自定义 inputView 等,均已测试无问题。

    4K20发布于 2018-11-21
  • 手动实现布局Transitions动画-第二部分

    基础常态图纸(activitypart2.xml):它保持着和平时代的稳定规则,inputview的大边框乖乖窝在顶部toolbar之下;负责“完成输入”的按钮inputdone隐退到不可见的深处(invisible inputview突然通过layoutalignParentTop="true"顶开禁锢它的界线直接与顶部齐平(彻底碾压盖住Toolbar)。

    5610编辑于 2026-04-25
  • 来自专栏向治洪

    React Native控件只TextInput

    </View> <View style={styles.marginTopview}/> <View style={styles.inputview center' }, marginTopview: { height: 15, backgroundColor: '#F7F7F9' }, inputview

    4.9K80发布于 2018-02-05
  • 来自专栏青玉伏案

    iOS开发之微信聊天工具栏的封装

    sendText切换键盘 2 -(void)tapGesture:(UITapGestureRecognizer *) sender 3 { 4 if ([self.sendTextView.inputView isEqual:self.functionView]) 5 { 6 self.sendTextView.inputView = nil; 7 8 1 //变成表情键盘 2 -(void)tapChangeKeyBoardButton:(UIButton *) sender 3 { 4 if ([self.sendTextView.inputView isEqual:self.functionView]) 5 { 6 self.sendTextView.inputView = nil; 7 8 [self.sendTextView reloadInputViews]; 11 } 12 else 13 { 14 self.sendTextView.inputView

    2.9K80发布于 2018-01-11
  • 来自专栏IT架构圈

    「小程序JAVA实战」小程序登录与后端联调(36)

    --账号--> <view class="<em>inputView</em>"> <image class="nameImage" src="../.. --密码--> <view class="inputView"> <image class="keyImage" src="../..

    1.3K10发布于 2018-12-28
  • 来自专栏程序IT圈

    Springboot 整合微信小程序实现登录与增删改查

    --账号--> <view class="<em>inputView</em>"> <label class="loginLabel">账号</label> --密码--> <view class="<em>inputView</em>"> <label class="loginLabel">密码</label>

    98320发布于 2021-01-20
  • 来自专栏终身学习者

    在React Native中构建启动屏

    Image source={logo} resizeMode="contain" style={styles.logo} /> </View> <View style={styles.inputView onChangeText={email => setEmail(email)} /> </View> <View style={styles.inputView logo: { fontWeight: 'bold', fontSize: 50, color: '#fb5b5a', marginBottom: 40, }, inputView

    10K10编辑于 2024-02-27
  • 来自专栏一“技”之长

    iOS中UITextView方法解读 原

    void)scrollRangeToVisible:(NSRange)range; 滚动textView使其显示在本一段文本 @property (readwrite, retain) UIView *inputView

    1.4K40发布于 2018-08-16
  • 来自专栏Java编程指南

    Spring Boot 整合微信小程序实现登录与增删改查

    --账号--> <view class="<em>inputView</em>"> <label class="loginLabel">账号</label> --密码--> <view class="<em>inputView</em>"> <label class="loginLabel">密码</label>

    1.4K40发布于 2020-06-09
领券