啊嘴 |
|
||
2016年2月23日
摘要:
界面传值 四种传值的方式 1、属性传值(从前往后) 步骤: 1、属性传值用于第一个界面向第二个界面传值 2、明确二者联系的桥梁,也就是触发跳转的地方 3、明确传输的值,类型是什么 4、在第二个视图控制器内部声明相对应类型的属性,来接受传输的值 5、在第二个界面使用传入的值 2、代理传值(从后往前) 阅读全文
摘要:
+ (void)getPersonByID:(int)ID { sqlite3 *db = [DB open]; sqlite3_stmt *stmt = nil; int result = sqlite3_prepare_v2(db, "select * from Persons where ID 阅读全文
摘要:
/* 约束 primary key 主键,拥有自定义的UNIQUE约束 not null NOT NULL 约束强制字段始终包含值。这意味着,如果不向字段添加值,就无法插入新记录或者更新记录。 下面的 SQL 语句强制 "Id_P" 列和 "LastName" 列不接受 NULL 值: CREATE 阅读全文
摘要:
键盘上的英文怎么读: ` backquote 反引号 ~ tilde ! exclam @ at # numbersign,英语国家是hash,美语是pound,音乐里作sharp,如C# $ dollar % percent ^ caret & ampersand * asterisk,star( 阅读全文
摘要:
- (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { _onlyLabel = [[UILabel alloc] initWithFrame:CGRectZero]; [self 阅读全文
摘要:
//平移 UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(pan:)]; [myView addGestureRecognizer:pan]; //缩 阅读全文
摘要:
在布局视图中 - (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { self.imageView = [[UIImageView alloc] initWithFrame:CGR 阅读全文
摘要:
// 日期格式类 作业:将NSDate对象与NSString对象 互转 NSDateFormatter // 1、第一步 创建一个日期格式对象 NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init]; // 2、第二步 设置转化日 阅读全文
摘要:
1、执行main()方法 main()方法完成三个事件 1、创建文件plist.list文件 2、创建UIApplication 3、创建UIApplication代理对象Appdelegate UIApplication 创建二个事件 1、建立事件循环 create and manages run 阅读全文
摘要:
self.automaticallyAdjustsScrollViewInsets = NO;视图控制器中有scrollerView的偏差问题 阅读全文
摘要:
当手势添加到view上的时候,手势会开始观察view和view上的subviews。 当手势被识别的时候,之前的touch将被取消同时不会再传递 当然这个可以通过设置cancelsTouchesInView为NO来取消或者开启,具体的可以看看Apple文档 > A gesture recognize 阅读全文
摘要:
第一种方法 [view endEditing:YES] 这个方法可以让整个view取消第一响应者,从而让所有控件的键盘隐藏。 第一种: 使用view的touchesBegan:触摸事件来实现对键盘的隐藏,当点击view的区域就会触发这个事件 - (void)touchesBegan:(NSSet<U 阅读全文
|
Copyright © 2024 啊嘴
Powered by .NET 8.0 on Kubernetes |