1.NSTimer的一个类方法?答:功能:监听对象,计时执行方法.+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(n...
分类:
其他好文 时间:
2016-01-19 01:37:32
阅读次数:
180
一、putty1、puttygen同时生成一个公钥和一个私钥(私钥可以设置密码)2、公钥复制到/root/.ssh/authorized_keys(权限改为600),目录/root/.ssh改为700,私钥文件保存到本地;3、关闭防火墙selinux和iptables,selinux临时关闭setenforce0,永久关闭/etc/seliinux/config中改sel..
分类:
系统相关 时间:
2016-01-18 21:08:46
阅读次数:
264
1.组装JSON值function getJSONString() { var jsons = new Array(); $(".sel").each(function() { if ($(this).attr("checked")) { var id...
分类:
Web程序 时间:
2016-01-17 12:16:32
阅读次数:
192
之前一直用objc_msgSend,但是没注意apple的文档提示,所以突然objc_msgSend crash了。之前32位的时候没问题,然后转换为64位之后就会发生EXC_BAD_ACCESS问题。当然apple再文档([64-Bit Transition Guide for Cocoa Tou...
分类:
其他好文 时间:
2016-01-15 12:34:14
阅读次数:
226
iOS中定时器NSTimer的使用1、初始化+ (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(id)userInfo repeats:(...
分类:
其他好文 时间:
2016-01-14 19:07:29
阅读次数:
149
例子一查询条件dtopublic class queryCondition{privateString[] stuIds;private String name;}查询sqlMap在查询条件中有一个数组stuIds,在动态标签中进行遍历,看每一个student的id是否在该数组中。发出的语句 sel...
分类:
其他好文 时间:
2016-01-13 17:25:10
阅读次数:
165
libevgitvim一事件类型实现(基类 ev_watcher,ev_watcher_list,ev_watcher_time继承)事件工作过程(ev_TYPE_init,_start,_stop)事件控制器(ev_loop(多事件),全局变量(单事件),ev_vars.h)二IO复用接口:sel...
分类:
其他好文 时间:
2016-01-06 22:03:17
阅读次数:
224
1.SEL数据类型SEL是个指针类型的数据,类似C语言中的函数指针。在OC中,每个对象方法都有其对应着一个SEL变量。当我们调用对象方法时,编译器会将该方法转换成一个SEL的数据,然后去类中寻找该方法对于的SEL。(这里涉及的深层原理本文没有深究,本文仅仅将SEL以及@selector的使用)2.@...
分类:
其他好文 时间:
2016-01-05 20:52:36
阅读次数:
188
GET 登录- (void)getLogin { NSString *urlString = [NSString stringWithFormat:@"http://localhost/login.php?username=%@&password=%@", self.username, sel...
分类:
其他好文 时间:
2015-12-30 21:44:18
阅读次数:
136
NSThread是轻量级的多线程开发,使用它需要我们自己管理线程的生命周期。有两种方法创建启动线程。方法1:对象方法 -(instancetype)initWithTarget:(id)target selector:(SEL)selector object:(id)argument;方法2:类方法...
分类:
移动开发 时间:
2015-12-29 11:07:07
阅读次数:
169