码迷,mamicode.com
首页 >  
搜索关键字:end event    ( 41611个结果
flex 圆形布局
xmlns:s="library://ns.adobe.com/flex/spark"    xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="init(event)"> import mx.core.IVisualElement; import mx.core.IVisualElementContai...
分类:其他好文   时间:2014-07-22 23:05:55    阅读次数:338
Lua基础(二)——表
表 a = { } b = { x = 1, ["hello, "] = "world!" } a.astring = "ni, hao!" a[1] = 100 a["a table"] = b function foo() end function bar() end a[foo] = bar --分别穷举表a和b for k, v in pairs(a) do print(k, "=>",...
分类:其他好文   时间:2014-07-22 23:00:33    阅读次数:261
Lua进阶(二)——函数环境、包
函数环境 function foo() print(g or "No g defined!") end foo() setfenv(foo, { g = 100, print = print }) --设置foo的环境为表{ g=100, ...} foo() print(g or "No g defined!") --No g defined! --100 --No g defined!...
分类:其他好文   时间:2014-07-22 22:59:54    阅读次数:338
实现toolbar透明的背景效果
//MyToolbar.h 头文件@interface MyToolbar : UIToolbar @end //MyToolbar.m 实现文件#import "MyToolbar.h"@implementation MyToolbar- (id)initWithFrame:(CGRect)fra...
分类:其他好文   时间:2014-07-22 22:59:54    阅读次数:240
Lua进阶(一)——函数闭包、元表
函数闭包 function createCountdownTimer(second) local ms=second * 1000; local function countDown() ms = ms - 1; return ms; end return countDown; end timer1 = createCountdownTimer(1); for...
分类:其他好文   时间:2014-07-22 22:59:53    阅读次数:307
汇编转移指令的原理
1.操作符offset 操作符offset在汇编语言中是由编译器处理的符号,他的功能是取得标号的偏移地址 比如下面程序: assume cs:codesg codesg segment start:mov ax,offset start 相当于mov ax,0     s:mov ax,offset s 相当于mov ax,3 codesg ends end start 在上...
分类:其他好文   时间:2014-07-22 22:59:34    阅读次数:506
poj1696/hlg1318 蛋疼的蚂蚁
Space AntTime Limit:1000MSMemory Limit:10000KTotal Submissions:2934Accepted:1874DescriptionThe most exciting space discovery occurred at the end of th...
分类:其他好文   时间:2014-07-22 22:59:15    阅读次数:365
java监听器
一、先看看jdk提供的event包:public interface EventListener:所有事件侦听器接口必须扩展的标记接口。package java.util;/** * A tagging interface that all event listener interfaces mus...
分类:编程语言   时间:2014-05-02 00:25:21    阅读次数:432
IOS中Block的循环引用
@interface DemoObj()@property (nonatomic, strong) NSOperationQueue *queue;@end@implementation DemoObj- (instancetype)init{ self = [super init]; ...
分类:移动开发   时间:2014-05-01 20:28:37    阅读次数:917
区分上下左右手势cocos2dx
void GameLayer::ccTouchEnded(CCTouch *touch,CCEvent *event){ CCLog("end %f,%f",touchStartP.x,touchStartP.y); if (openTouch) { CCPoint touchEndP=touch->getLocation();...
分类:其他好文   时间:2014-04-30 22:33:40    阅读次数:359
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!