狗尾草

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

01 2014 档案

(ios) nsnotification总结
摘要:1 文本输入,键盘显示时,view向上,键盘隐藏时,view向下1.1 注册键盘显示,关闭通知,并实现主界面上下变动 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:)... 阅读全文

posted @ 2014-01-20 11:24 狗尾草-大数据收割基 阅读(2094) 评论(0) 推荐(1) 编辑

(ios) 屏幕触摸总结
摘要:1 屏幕触控实现(单击 双击) [self becomeFirstResponder]; //允许多点互动 self.view.multipleTouchEnabled=TRUE;实现事件部分#pragma mark-#pragma mark touch - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ //触摸开始 }- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ //移动 }- (vo... 阅读全文

posted @ 2014-01-15 19:28 狗尾草-大数据收割基 阅读(3515) 评论(0) 推荐(1) 编辑

sqlite数据库 select 查询带换行符数据
摘要:在sqlite 数据库中用 select 语句查询带 换行符的 数据信息实现SELECT * from questions_exec where title like '%'||x'0a'||'%'在sqlite 中x'0a' 相当于Char(10) 为换行符 阅读全文

posted @ 2014-01-09 21:41 狗尾草-大数据收割基 阅读(772) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示