void Awake() { if (Application.isWebPlayer) { string thisString = Application.absoluteURL; if (thisString.Ind...
分类:
其他好文 时间:
2015-11-24 09:52:19
阅读次数:
127
- (void)starButtonClicked:(id)sender{ //先将未到时间执行前的任务取消。 [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(todoSomething:.....
分类:
移动开发 时间:
2015-11-24 09:45:56
阅读次数:
306
HASH_DELETE(buf_page_t, hash, buf_pool->page_hash, fold, bpage);NAME 可理解为 void* next/*****************************************************************...
分类:
其他好文 时间:
2015-11-24 00:58:18
阅读次数:
175
下面我们来看第二层:Data 这一层相对来说是对Core层的具体实现了.从命名可以看出来,这和数据库相关.1.Db.csCodeFirst模式的本地数据库类,继承了DbContext. protected override void OnModelCreating(DbModelBuilder m....
分类:
Web程序 时间:
2015-11-24 00:54:21
阅读次数:
202
一. 泛型概念的提出(为什么需要泛型)?首先,我们看下下面这段简短的代码://import java.util.List;public class GenericTest { public static void main(String[] args) { List list =...
分类:
编程语言 时间:
2015-11-23 23:39:17
阅读次数:
382
虽然只是一个小功能,感觉还是挺实用的吧!首先去苹果的官网上下载Reachability这个库。因为联网的状态是要实时监听的,当网络的情况发生变化的时候要及时通知用户,所以应该使用通知中心。具体实现:- (void)viewDidLoad { [super viewDidLoad]; //...
分类:
移动开发 时间:
2015-11-23 23:24:49
阅读次数:
216
1 #include 2 #include 3 4 using namespace std; 5 void swap(int* a,int pos,int j){ 6 int temp=a[pos]; 7 a[pos]=a[j]; 8 a[j]=temp; 9 }10...
分类:
编程语言 时间:
2015-11-23 21:46:30
阅读次数:
277
- (void)applicationDidEnterBackground:(UIApplication *)application { // Use this method to release shared resources, save user data, invalidate tim...
分类:
移动开发 时间:
2015-11-23 21:42:01
阅读次数:
883
- (void)drawRect:(CGRect)rect { CGContextRef ctx = UIGraphicsGetCurrentContext(); CGContextSaveGState(ctx); CGContextMoveToPoint(ctx, 0, 0); CGConte.....
分类:
其他好文 时间:
2015-11-23 20:34:58
阅读次数:
165
class test { static { a=3; //System.out.println(a); } static int a = 1; String b = "ff"; public static void ma...
分类:
编程语言 时间:
2015-11-23 18:38:11
阅读次数:
170