摘要: 一、设置尺寸 提示:不建议,像下面这样吧popover的宽度和高度写死。 更好的设计是:popover的尺寸应该由内部控制器的内容所决定。 内容控制器可以自行设置自己在popover中显示的尺寸,其中有两种方法: (1)在iOS 7之前 @property (nonatomic,readwrite) 阅读全文
posted @ 2015-07-08 15:29 MokeyChan 阅读(522) 评论(0) 推荐(0)
摘要: 方法: 1、手势(触背景)关闭键盘 -(void)tapBackground //在ViewDidLoad中调用{ UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@s 阅读全文
posted @ 2015-07-08 11:48 MokeyChan 阅读(309) 评论(0) 推荐(0)