iOS ui--Customizing the use of iOS Hycheckbox source code

Source: Internet
Author: User

customizing iOS for Hycheckbox source use

First of all, this third-party source code is my own development oh, as long as the import can be used, do not need to take pictures of the OH.

Preview Effect:

百度云下载源码链接: http://pan.baidu.com/s/1eQkCGYA 密码: jf9d

Here is how to use the source code:

1、将下载好的源码直接拷贝进工程:

2、随便拖一个UIView(颜色背景无所谓)到storyBoard上,然后设定Class为刚刚拷贝进来的源码中的HYCheckBox。



3、然后直接拖线到对应的控制器创建IBOutlet引用,接着设定显示文本和监听方法:



4、


5、测试


总结:毕竟是通过源码创建的,这个和XCode提供的内置UISwitch已经可视化的控件不一样,而且我以上的使用最简便的方法是通过
拖拽出来的UIView控件作为载体的,就算直接拖线出IBAction监听的方法,也是无法和我的源码交互的。



技术程度不高,还请见谅。??



iOS ui--Customizing the use of iOS Hycheckbox source code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.