遇到selector发现不是很明白,网上搜到的零零星星的介绍也不成体系,索性自己翻译一下,加深一下印象。原文来自官方API文档下的Selectors。Selectors在OC中,selector有两层含义。1、当selector在源代码中被用来指向一个对象的时候,selector可以仅仅指这个方法的...
分类:
其他好文 时间:
2014-06-04 20:59:49
阅读次数:
326
1.提示为error C2440: “类型转换”: 无法从“void (__thiscall
xx::* )(void)”转换为“cocos2d::SEL_CallFuncN” 提示前
调用语句为callfuncN_selector(GameMenu::menuEnter) menuEnter这个方...
分类:
其他好文 时间:
2014-06-02 16:03:24
阅读次数:
194
上图是程序运行的过程图,程序有一个主循环,一直不断的去检查是否有监听的事件到达,addTarget:(id) action:(SEL)
forControlEvents:(UIControlEvents是把用户点击按钮的监听注册到运行循环中,当运行循环检测到用户点击按钮事件,就去调用id的sel方法...
分类:
其他好文 时间:
2014-05-26 12:19:13
阅读次数:
220
SELsel=@selector(start:);//指定actionif([objrespondsToSelector:sel]){//判断该对象是否有相应的方法
[objperformSelector:selwithObject:self];//调用选择器方法 }
分类:
其他好文 时间:
2014-05-26 08:14:11
阅读次数:
207
select * from (select A.*,rownum rd from (select *
from [tablename] where [condition] order by [condition] ) A where
rownum=[startpage*pagesize];1.sel...
分类:
数据库 时间:
2014-05-25 22:29:33
阅读次数:
349
一、定时器在cocos2d-x中,
类似定时器的操作,不需要额外的写Timer,实际上,在Node元素中,已经添加了定时执行的功能;先来看看在Node中的定义// ...bool
Node::isScheduled(SEL_SCHEDULE selector){ return _schedul...
分类:
其他好文 时间:
2014-05-25 19:42:54
阅读次数:
290
MySQL学习系列2--MySQL执行计划分析EXPLAINhttp://www.cnblogs.com/cfinder010/p/3427477.htmlhttp://www.cnblogs.com/suixinpeng/p/3698965.html1.Explain语法
EXPLAIN SEL....
分类:
数据库 时间:
2014-05-23 12:47:29
阅读次数:
573
NSTimer的使用方法1、初始化+ (NSTimer
*)timerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget
selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)...
分类:
其他好文 时间:
2014-05-23 07:01:44
阅读次数:
224
1、初始化+ (NSTimer
*)timerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget
selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)yesOrNo;+ (N...
分类:
移动开发 时间:
2014-05-22 05:38:01
阅读次数:
320
出路出路,走出去了,总是会有路的;困难苦难,困在家里就是难。
因为最近遇到的技术问题一直没找到可行的解决办法,一直在翻看selenium的源代码,之前写测试代码的时候就是拿来即用,写什么功能啊,就按手动的操作步骤去转换,近日看到一个文章,又去wiki上查了查,觉得写的不错就记录下来了。
在使用sel...
分类:
其他好文 时间:
2014-05-21 22:16:31
阅读次数:
427