13 Star 41 Fork 16

曾宪华 / XHTextField

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

XHTextField

中文:类似微信的用户头像选择、系统信息App的手势控制键盘隐藏,还有自定义9种输入风格,比如输入Email并检查是否正确、输入密码检查是否输入正确、输入生日自动帮你选择星座、自定义textField的leftView的图标等功能,注意:还有输入错误的标识提示哦!

English: micro letter like avatars selection, system information App gesture keypad, and custom style 9 kinds of input, such as input Email and check whether it is right, input the password check whether correct, input automatically help you choose birthday constellation, customize the textField leftView ICONS, and other functions, note: there are input error identification tips!

image

##安装 ##Installation

中文: CocosPods安装XHTextField的推荐方法,只是在Podfile添加以下行:

english: CocosPods is the recommended methods of installation XHTextField, just add the following line to Profile:

Profile

pod 'XHTextField'

例子

Example

- (void)_setup {
    XHTextField *emailTextField = [[XHTextField alloc] initWithFrame:CGRectMake(0, 0, 100, 35)];
    [emailTextField setFieldType:kXHEmailField];
    // diss keyboard gesture
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] init];
    XHTextFieldScrollView *scrollView = [[XHTextFieldScrollView alloc] initWithFrame:self.view.bounds];
    [scrollView setDismissivePanGestureRecognizer:pan];
    [scrollView addSubview:emailTextField];
    [self.view addSubview:scrollView];
}

- (void)viewDidLoad {
    [self _setup];
}

Thank you

mehfuzh

License

中文: XHTextField 是在MIT协议下使用的,可以在LICENSE文件里面找到相关的使用协议信息.

English: XHTextField is acailable under the MIT license, see the LICENSE file for more information.

=======================

须知

中文:如果您在您的项目中使用开源组件,请给我们发电子邮件告诉我们您的应用程序的名称,否则后果自负。

Instructions

English:If you use open source components in your project, please Email us to tell us the name of your application, otherwise the consequence is proud.

The MIT License (MIT) Copyright (c) 2013 JackTeam Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

中文:类似微信的用户头像选择、系统信息App的手势控制键盘隐藏,还有自定义9种输入风格,比如输入Email并检查是否正确、输入密码检查是否输入正确等等 展开 收起
Objective-C
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Objective-C
1
https://gitee.com/iamking/XHTextField.git
git@gitee.com:iamking/XHTextField.git
iamking
XHTextField
XHTextField
master

搜索帮助