![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UI控件
默默079
这个作者很懒,什么都没留下…
展开
-
Swift UI控件 UIPickerView 、UISearchBar 、UIDatePicker
在顶部签相关的协议class ViewController: UIViewController, UIPickerViewDelegate, UIPickerViewDataSource, UISearchBarDelegate {}UIPickerView的相关属性// 创建 UIPickerView 并设置其位置大小let pickerView = UIPickerVi...原创 2018-02-27 20:43:03 · 333 阅读 · 0 评论 -
iOS使用NSMutableAttributedString改变字符串中部分文字的字体颜色或大小
// 创建一个文本标签UILabel *yyLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 200, 300, 500)];yyLabel.numberOfLines = 0;// 创建NSMutableAttributedString做富文本操作 -- 设置字符串NSMutableAttributedString *attribu...原创 2018-04-02 19:54:03 · 2872 阅读 · 0 评论 -
六步搞定 -- 代理传值(逆传)
逆传 AB两个页面,将 B 页面的内容传到 A 页面B页面 在 .h 文件中设置代理/** * 1.创建协议 */@protocol SecondBDelegate <NSObject>/** * 协议中必须实现的方法用 @required 来修饰: *///@required/** * 协议中可选实现方法用 @optional 来修饰: *///...原创 2018-04-29 10:34:18 · 196 阅读 · 0 评论