- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[[UIWindow alloc] init...
分类:
移动开发 时间:
2014-07-06 23:04:31
阅读次数:
270
#pragma mark 发微博界面:sendStatus-(void)sendStatus{ if ([self.textView.text isEqualToString:@""]) { UIAlertView *alter = [[UIAlertView alloc...
分类:
其他好文 时间:
2014-07-06 22:34:00
阅读次数:
293
$.fn.image_checked = function(self,status,img_body,csrf_token){ $(this).live('click', function(){ var index = $(this).index() var img_id = $('.'+se...
分类:
Web程序 时间:
2014-07-06 22:31:18
阅读次数:
451
1>创建程序载入界面- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ //1>创建窗口 self.window = [[UIW.....
分类:
移动开发 时间:
2014-07-06 18:03:22
阅读次数:
218
expect自动远程拷贝脚本,利用rsync命令,脚本内容如下:#!/usr/bin/expect --proc Usage_Exit {self} { puts "" puts "Usage: $self ip user passwd port sourcefile d...
分类:
其他好文 时间:
2014-07-06 16:24:17
阅读次数:
333
非强制性,但是个好习惯当使用连锁赋值时很有用x=y=z=10;class Window{ public: Window& operator=(int size) { ... return *this; }}这个规则适用于 -,+, +=,-= etc
分类:
编程语言 时间:
2014-07-06 16:14:49
阅读次数:
264
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindow alloc] initW...
分类:
移动开发 时间:
2014-07-06 15:36:26
阅读次数:
366
先吐槽一下这个标题,空格略蛋疼,不像中文,但是不写空格看上去则更诡异,求解决方案……NSTimer会retain它的target,这样如果在控制器当中定义一个NSTimer,target指定为self,则会引起循环引用。解决方案和防止block引用self一样,第一步需要把NSTimer的操作封装到...
分类:
其他好文 时间:
2014-07-06 14:44:21
阅读次数:
141
一、时序图简介(Brief introduction) 二、时序图元素(Sequence Diagram Elements)角色(Actor)对象(Object)生命线(Lifeline)控制焦点(Focus of Control)消息(Message)自关联消息(Self-Message)Com....
分类:
其他好文 时间:
2014-07-06 13:38:54
阅读次数:
254
Master.preStart(){ webUi.bind() context.system.scheduler.schedule(0 millis, WORKER_TIMEOUT millis, self, CheckForWorkerTimeOut) //定时任务检测是否有DEAD WORK.....
分类:
移动开发 时间:
2014-07-06 12:51:21
阅读次数:
249