[NSTimer scheduledTimerWithTimeInterval:[self getRandomNumber:1 to:8] target:self selector:@selector(handleTimer:) userInfo:nil repeats:YES];//获取随机数-(...
分类:
其他好文 时间:
2015-12-10 12:52:36
阅读次数:
134
数据库文件过大时就要进行数据分区,就是讲数据库拆分到多个文件组中。已方便数据文件管理,提高数据库的读取效能,多文件组如何进行数据库的备份和还原呢,今天主要做多文件组数据库的备份和还原实验。第一步创建数据库qhw_test 数据库包括一个userinfo 数据表,userinfo数据表根据id做分区 ...
分类:
数据库 时间:
2015-12-08 18:10:01
阅读次数:
259
error = Error Domain=NSCocoaErrorDomain Code=3840 "Unescaped control character around character 168." UserInfo={NSDebugDescription=Unescaped control c...
分类:
其他好文 时间:
2015-12-06 19:06:27
阅读次数:
145
通知设计模式简单好用,就是一个项目中如果用的太多,不利于代码维护,可读性太差。实现过程: [[NSNotificationCenter defaultCenter]postNotificationName:@"notificarions" object:self userInfo:dic];发...
分类:
移动开发 时间:
2015-12-04 01:00:34
阅读次数:
193
1.在数据库中新建两张测试表创建用户表use eftestgoif exists(select * from sysobjects where name='UserInfo')drop table UserInfocreate table UserInfo( ID int identity(1,1....
分类:
数据库 时间:
2015-12-03 22:57:17
阅读次数:
221
安装: 传送门以下是遇到的一些问题:1.form表单提交控制器如何获得:①using Nancy.ModelBinding;var config = this.Bind();public class UserInfo { public string Id { g...
分类:
其他好文 时间:
2015-12-03 13:29:35
阅读次数:
188
21、理解Objective-C错误模型@throw [NSException exceptionWithName:NSInternalInconsistencyException reason:@"must be overriden" userInfo:nil]异常只用于处理严重错误。出现不那么严...
分类:
移动开发 时间:
2015-11-28 19:58:15
阅读次数:
186
/** * 键盘的frame发生改变时调用(显示、隐藏等) */- (void)keyboardWillChangeFrame:(NSNotification *)notification{/** notification.userInfo = @{ // 键盘弹出\隐藏后的fram...
分类:
其他好文 时间:
2015-11-28 19:57:40
阅读次数:
146
示例://创建scrollTimer =[NSTimer scheduledTimerWithTimeInterval:interval target:self selector:@selector(show) userInfo:nil repeats:YES];//使无效[scrollTimer ...
分类:
移动开发 时间:
2015-11-25 10:10:23
阅读次数:
149
1.建立数据库OA,表UserInfo 2.创建类库项目以及mvc4 web项目 1)OA.Model 层:模型 2)OA.IDal 层 :数据接口 3)OA.Dal层 :数据实现4)OA.IDBSession层 :会话接口5)OA.DBSession 层 :会话层6)OA.IBLL 层...
分类:
编程语言 时间:
2015-11-25 10:05:43
阅读次数:
135