摘要: 客户端连接redis-cli -p 28903查询所有Keykeys *get list 会有如下报错(error) WRONGTYPE Operation against a key holding the wrong kind of value用sort key alpha 阅读全文
posted @ 2014-11-19 15:33 斐济的夜光 阅读(148) 评论(0) 推荐(0)
摘要: curl命令通过-H '...' -H '...'这样增加多个头例如:curl -H 'content-type: text/xml' -H 'Authorization:OMPAUTH realm="OMP",appid="11110000000100018010",pid="00000",cha... 阅读全文
posted @ 2014-11-19 13:57 斐济的夜光 阅读(33533) 评论(1) 推荐(0)
摘要: [self.view insertSubview:uiview atIndex:no];把子控件按第几个顺序插到父控件里 阅读全文
posted @ 2014-11-15 15:26 斐济的夜光 阅读(120) 评论(0) 推荐(0)
摘要: 常用示例:0 0 12 * * ? 每天12点触发0 15 10 ? * * 每天10点15分触发0 15 10 * * ? 每天10点15分触发0 15 10 * * ? * 每天10点15分触发0 15 10 * * ? 2005 2005年每天10点15分触发0 * 14 * * ? 每天下午... 阅读全文
posted @ 2014-11-14 17:28 斐济的夜光 阅读(132) 评论(0) 推荐(0)
摘要: 1、实现监听的思想,对象A可以监听对象B状态 2、通知的思想,对一个对象A的状态发生改变时就会通知对象B知道 阅读全文
posted @ 2014-11-14 00:01 斐济的夜光 阅读(192) 评论(0) 推荐(0)
摘要: 1、block的功能是实现代码的回调,简单高效[UIView animateWithDuration:1.0 animations:^{ //需要执行的代码 self.cover.alpha = 0.0; self.imageBtn.frame = CGRectMake(85, 8... 阅读全文
posted @ 2014-11-07 23:52 斐济的夜光 阅读(160) 评论(0) 推荐(0)
摘要: 1、先判断数组是否为空,为空再说明已经加载过,不为空则未加载- (NSArray *) questions{ if (_questions == nil) { //1.加载plist NSArray *dictArray = [NSArray arrayWithContentsO... 阅读全文
posted @ 2014-11-07 23:50 斐济的夜光 阅读(409) 评论(0) 推荐(0)
摘要: - (instancetype) initWithDict:(NSDictionary *)dict{ if (self = [super init]) { self.answer = dict[@"answer"]; self.title = dict[@"title"]; ... 阅读全文
posted @ 2014-11-07 23:46 斐济的夜光 阅读(223) 评论(0) 推荐(0)
摘要: 方法1NSArray *objs = [[NSBundle mainBundle] loadNibNamed:@"WNHAppView" owner:nil options:nil];这个方法会创建xib中的所有对象,并且将对象按顺序放到objs数组里方法2UINib *nib = [UINib n... 阅读全文
posted @ 2014-11-02 21:16 斐济的夜光 阅读(268) 评论(0) 推荐(0)
摘要: 今天学习九宫格应用信息展示时,点击按钮没反应,检查了很久按钮的创建代码还是找不出问题后来通过对比了每一行的代码才发现问题所在流程是这样的:1、通过创建一个view UIImageView *appView =[[UIImageView alloc] init]; ...... [self.view ... 阅读全文
posted @ 2014-11-02 13:22 斐济的夜光 阅读(623) 评论(0) 推荐(0)