摘要: 今天遇到一个奇葩的问题,就是在iOS7以上的系统运行时,通过UIScreen *screen = [UIScreen mainScreen]; CGRect rect = [screen bounds];获得的屏幕高度竟然为480。纠结了好久,上网查了下,http://blog.csdn.ne... 阅读全文
posted @ 2014-12-10 15:23 Jelly_L 阅读(189) 评论(0) 推荐(0) 编辑
摘要: http://www.jcsample.com/archives_103.htmlIOS应用程序生命周期—程序的生命周期a.程序的生命周期是指应用程序启动到应用程序结束整个阶段的全过程b.每一个IOS应用程序都包含一个UIApplication对象,IOS系统通过该UIApplication对象监控... 阅读全文
posted @ 2014-12-09 09:39 Jelly_L 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 今天一直在释放一个类对象B(这个类中有一个timer),根据arc的原理来说, B的retainCount为0时,就会调用dealloc。但是当为我把B=nil,没有进入dealloc。-(void)dealloc{ [timer invalidate]; timer = nil;}后来经过朋... 阅读全文
posted @ 2014-12-04 20:46 Jelly_L 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 1.BaseClass是基类,SubClass继承BaseClass,并且重写基类的manageMethod方法,通过类名@"SubClass"获取类,并通过基类调用manageMethod方法,实现工厂模式。NSString *className = @"SubClass"; NSStrin... 阅读全文
posted @ 2014-12-03 15:01 Jelly_L 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 用正则表达式分离C++字符串string,写了一个小例子。#include "stdafx.h"#include #include #include #include using namespace std;#define PATTERN "[\\S]+" //通过正则式pattern分割字符串v... 阅读全文
posted @ 2014-10-23 15:02 Jelly_L 阅读(3934) 评论(0) 推荐(0) 编辑
摘要: error: No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).解决方法:set the "Build Active Architecture Only" and ... 阅读全文
posted @ 2014-09-26 21:06 Jelly_L 阅读(671) 评论(0) 推荐(0) 编辑
摘要: 这是朋友去笔试的一道题,有点考智商,当时我还很自信的说random5+random5/2 不就可以了 他说不行,然后我就在网上搜了一下 有一道类似的题目题目:已知一个函数rand7()能够生成1-7的随机数,请给出一个函数,该函数能够生成1-10的随机数。思路:假如已知一个函数能够生成1-49的随机... 阅读全文
posted @ 2014-05-04 21:51 Jelly_L 阅读(1828) 评论(0) 推荐(0) 编辑
摘要: 今天拿到一个处于恢复模式的手机,帮忙刷机 开始想直接通过iTunes来进行恢复更新的,结果发现下载速度太慢,而且老是中断,就开始尝试其他手机助手。因为以前用【爱思助手】把ios7.0版本的手机恢复到6.1过,所以这次最开始也选择的它。但是我发现 处于恢复模式的要进入DFU模式非常难,在网上找了很多资... 阅读全文
posted @ 2014-04-17 17:48 Jelly_L 阅读(302) 评论(0) 推荐(0) 编辑
摘要: Xcode晋级 JSONKit出现的警告. - JavaScript http://www.myexception.cn/javascript/1293545.htmlhttp://www.cnblogs.com/loveyy/archive/2012/07/09/2583830.htmlhttp://www.myexception.cn/javascript/1293545.htmljsonkit使用1、引入两个jsonkit的相关文件。2、发送到网络请求,然后得到返回结果数据,并进行反序列化。NSURLRequest * request = [NSURLRequest requestWit 阅读全文
posted @ 2013-11-04 22:37 Jelly_L 阅读(320) 评论(0) 推荐(0) 编辑
摘要: http://bbs.9ria.com/forum.php?mod=viewthread&tid=222941 阅读全文
posted @ 2013-09-10 11:00 Jelly_L 阅读(127) 评论(0) 推荐(0) 编辑