摘要:
解析UIControl从下图可以看出,UIControl继承自UIView,添加了响应事件功能.UIButton之所以能响应各种各样的事件是因为继承自UIControl使用UIControl可以精确的控制按钮事件,我用定制UIControlEventValueChanged来进行说明.YXContr... 阅读全文
摘要:
设置UINavigationController标题的属性 self.title = @"产品详情"; [self.navigationController.navigationBar setTitleTextAttributes:\ [NSDictionary dictiona... 阅读全文
摘要:
使用DIDatepickerhttps://github.com/noxt/DIDatepicker效果:#import "DIViewController.h"#import "DIDatepicker.h"@interface DIViewController ()@property (weak... 阅读全文