require "Cocos2d"require "Cocos2dConstants"local TestScene = class("TestScene",function() return cc.Scene:create()end)function TestScene.create() ...
分类:
其他好文 时间:
2015-02-27 22:51:05
阅读次数:
187
1. Because of a power outage,instance failure has occurred. From what point in the redo log does recovery begin and where does it end?A. Current redo ...
分类:
其他好文 时间:
2015-02-27 16:50:49
阅读次数:
290
Problem DescriptionCC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there ar...
分类:
其他好文 时间:
2015-02-27 16:43:41
阅读次数:
154
函数可以分为:单行函数和多行函数。单行函数所谓的单行函数就是将每条数据进行独立的计算,然后每条数据得到一条结果。1.流程控制函数caseSql代码selectname,age,(casesexwhen1then"男"when0then"女"else"火星人"end)fromuser;ifSql代码s...
分类:
数据库 时间:
2015-02-27 16:36:25
阅读次数:
181
#!/usr/local/bin/ruby?-w
#
#
#
def?call_each
???animals?=?%w{ant?bee?cat?dog?elk}
???for?animal?in?animals
?????yield?animal
???end
end
call_each?{|animal_block|?puts?...
分类:
其他好文 时间:
2015-02-27 15:21:36
阅读次数:
162
TextView控件有一个属性是ellipsize,指的是当文字内容长度超过TextView大小时显示问题,一般情况下我们都是用省略号表示,常用的情况有以下四种:
1,android:ellipsize = "end" 省略号在结尾
3,android:ellipsize = "start" 省略号在开头
3,android:ellipsize =...
分类:
其他好文 时间:
2015-02-27 11:57:16
阅读次数:
171
分享个能够自动适应大小的ScrollView
下面贴下适应的代码
ViewController.m
#import "ViewController.h"
#import "AutoAdaptationScrollView.h"
@interface ViewController ()
@end
@implementation ViewController
- (voi...
分类:
其他好文 时间:
2015-02-27 11:52:29
阅读次数:
140
在java下习惯了String.subString(start,end)然后再golang继续敲substring木有了,看了下代码,也是原生支持的但是百度发现有些人竟然把字符串转成字符数组再根据下标取,简直误人子弟go的string 支持直接根据 index 截取字符串的例如str := "hel...
分类:
其他好文 时间:
2015-02-27 11:32:08
阅读次数:
128
require "Cocos2d"require "Cocos2dConstants"local TestScene = class("TestScene",function() return cc.Scene:create()end)function TestScene.create() ...
分类:
其他好文 时间:
2015-02-27 06:41:21
阅读次数:
147
protocol:协议想要拥有某些方法声明通过:// : 继承父类// 遵守协议协议:就是用来声明方法的,想要拥有某些方法声明,只需要遵守协议。1.协议的定义@protocol协议名称 //方法声明列表....@end// 定义了一个名叫MyProtocol的协议@protocol MyPro...
分类:
移动开发 时间:
2015-02-26 16:12:00
阅读次数:
152