转自:http://hi.baidu.com/kissbaofish/item/2f56d326742c39454799620b用dbca建库停在46%是export NLS_LANG='american_america.ZHS16GBK'export NLS_LANG="SIMPLIFIED CH...
分类:
数据库 时间:
2014-06-28 13:46:10
阅读次数:
906
当进入页面时,定时器是打开的。当离开页面时,定时器会关掉。直接上代码。.h部分#import @interface RootViewController : UIViewController{ //定义定时器 NSTimer *timer;}@end.m部分-(void)viewWill...
分类:
其他好文 时间:
2014-06-18 09:01:10
阅读次数:
170
1.游戏背景介绍(写在前面的废话):五月初的某天,看到某网推荐了这款游戏,Pongo,看着还不错的样子就用ipad下下来试玩了下,玩了两局感觉还错挺过瘾的,因为是手欠类游戏嘛大家懂的。但是没一会发现游戏在ipad似乎有些bug,玩一会就会卡住然后只能强退了,真是揪心,记录还等..
分类:
编程语言 时间:
2014-06-16 17:23:23
阅读次数:
366
ios:NSRunLoop1.NSRunLoop是消息机制的处理模式NSRunLoop的作用在于有事情做的时候使的当前NSRunLoop的线程工作,没有事情做让当前NSRunLoop的线程休眠2.nstimer默认添加到当前NSRunLoop中,也可以手动制定添加到自己新建的NSRunLoop的中[...
分类:
移动开发 时间:
2014-06-13 07:26:02
阅读次数:
288
昨天写了 The Query on the
Tree 的解题报告,但是遗留下一个问题,不能算是完美解决这道题.因为如果精心构造数据的话,昨天的题解还是会被卡住的.今天中午睡觉的时候突然想起一个不会被卡住的方法.题意 有一棵树,树的每个点有点权,每次有三种操作: 1.
Query x 表示查询以x...
分类:
其他好文 时间:
2014-06-06 16:32:02
阅读次数:
266
方法一:-(void) viewDidLoad{[self
performSelectorInBackground:@selector(call1) withObject:nil];}-(void)
call1{timer1 = [NSTimer scheduledTimerWithTimeInte...
分类:
其他好文 时间:
2014-06-04 20:23:05
阅读次数:
228
head
代码。。Java代码#import@interfaceViewController:UIViewController{UIProgressView*progressview;UIProgressView*progressviewbar;NSTimer*timer;}@property(re...
分类:
移动开发 时间:
2014-06-04 19:55:32
阅读次数:
359
btn.enabled=NO;` NSTimer * notificationTimer =
[NSTimer scheduledTimerWithTimeInterval:10*60.0
target:selfselector:@selector(enable) userInfo:nil rep....
分类:
其他好文 时间:
2014-06-04 18:08:11
阅读次数:
199
主要的原理包括:
继承UIView ,重载drawrect和重载触摸事件
待实现的功能还有,路径数组保存等。
#import "testdrow.h"
@implementation testdrow
UIColor *pick_color;
int choose;
UIBezierPath *mpath ;
UIBezierPath *eraser_path;
NSTimer *myt...
分类:
移动开发 时间:
2014-06-03 00:20:36
阅读次数:
323
在MAC上安装rails的时候,使用命令$ gem install rails 发现一直没响应,使用$
gem install rails-V命令发现,安装会在中间卡住,出现302 Moved Temporarily
提示。应该是rubygems源的问题,换成淘宝的源就很快了# 查看现在的源gem ...
分类:
其他好文 时间:
2014-05-29 15:40:31
阅读次数:
236