啊嘴  

2016年2月23日

摘要: 键盘上的英文怎么读: ` backquote 反引号 ~ tilde ! exclam @ at # numbersign,英语国家是hash,美语是pound,音乐里作sharp,如C# $ dollar % percent ^ caret & ampersand * asterisk,star( 阅读全文
posted @ 2016-02-23 23:27 啊嘴 阅读(797) 评论(0) 推荐(0) 编辑
 
摘要: - (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { _onlyLabel = [[UILabel alloc] initWithFrame:CGRectZero]; [self 阅读全文
posted @ 2016-02-23 23:26 啊嘴 阅读(125) 评论(0) 推荐(0) 编辑
 
摘要: //平移 UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(pan:)]; [myView addGestureRecognizer:pan]; //缩 阅读全文
posted @ 2016-02-23 23:26 啊嘴 阅读(262) 评论(0) 推荐(0) 编辑
 
摘要: 在布局视图中 - (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { self.imageView = [[UIImageView alloc] initWithFrame:CGR 阅读全文
posted @ 2016-02-23 23:25 啊嘴 阅读(143) 评论(0) 推荐(0) 编辑
 
摘要: // 日期格式类 作业:将NSDate对象与NSString对象 互转 NSDateFormatter // 1、第一步 创建一个日期格式对象 NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init]; // 2、第二步 设置转化日 阅读全文
posted @ 2016-02-23 23:23 啊嘴 阅读(596) 评论(0) 推荐(0) 编辑
 
摘要: 1、执行main()方法 main()方法完成三个事件 1、创建文件plist.list文件 2、创建UIApplication 3、创建UIApplication代理对象Appdelegate UIApplication 创建二个事件 1、建立事件循环 create and manages run 阅读全文
posted @ 2016-02-23 23:23 啊嘴 阅读(143) 评论(0) 推荐(0) 编辑
 
摘要: self.automaticallyAdjustsScrollViewInsets = NO;视图控制器中有scrollerView的偏差问题 阅读全文
posted @ 2016-02-23 23:22 啊嘴 阅读(140) 评论(0) 推荐(0) 编辑
 
摘要: 当手势添加到view上的时候,手势会开始观察view和view上的subviews。 当手势被识别的时候,之前的touch将被取消同时不会再传递 当然这个可以通过设置cancelsTouchesInView为NO来取消或者开启,具体的可以看看Apple文档 > A gesture recognize 阅读全文
posted @ 2016-02-23 23:20 啊嘴 阅读(661) 评论(0) 推荐(0) 编辑
 
摘要: 第一种方法 [view endEditing:YES] 这个方法可以让整个view取消第一响应者,从而让所有控件的键盘隐藏。 第一种: 使用view的touchesBegan:触摸事件来实现对键盘的隐藏,当点击view的区域就会触发这个事件 - (void)touchesBegan:(NSSet<U 阅读全文
posted @ 2016-02-23 23:14 啊嘴 阅读(323) 评论(0) 推荐(0) 编辑

2016年1月30日

摘要: 一、沙盒机制 沙盒就是一个单独的,封闭的空间(好像后来不封闭,外面的应用程序也可以访问了),每一个应用程序都有一个这样的沙盒,用来存储相应的东西(东西:所有的非代码的东西,如图片,声音,属性列表,数据库,文本文件)(应用程序的沙盒,就是应用程序的目录) 每一个沙盒地下都有三个文件 Documents 阅读全文
posted @ 2016-01-30 15:24 啊嘴 阅读(180) 评论(0) 推荐(0) 编辑