摘要: 因为自己之前在block中需要递归调用自己本身,而没有用weak。导致在[self removeFromSuperview]方法时,CPU使用率一只高达百分之百。。block一直持有self。。。fix:__weak 当前类 *weakSelf = self;[weakSelf 递归调用的方法];这... 阅读全文
posted @ 2015-02-05 17:00 i0ject 阅读(523) 评论(0) 推荐(0) 编辑
摘要: f=open("dict.txt",'w+')chars=[ '0','1','2','3','4','5','6','7','8','9', ]base=len(chars) #62end=len(chars)**4for i in range(... 阅读全文
posted @ 2015-02-05 12:25 i0ject 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 1、/etc/bashrc2、Mysql:1)alias mysql=/usr/local/mysql/bin/mysql2)alias mysqladmin=/usr/local/mysql/bin/mysqladmin 阅读全文
posted @ 2015-01-28 17:55 i0ject 阅读(929) 评论(0) 推荐(0) 编辑
摘要: 项目开发中,我们常常需要将工程文件打包成.ipa文件,提供给越狱的iphone安装。下面是一种方法:1、首先应该给工程安装好配置文件(这里不再敖述),在ios device的状态下,运行成功。2、选择Product->archive,如下图3、点击Distribute按钮,弹出新窗口,选择Expor... 阅读全文
posted @ 2015-01-26 14:53 i0ject 阅读(927) 评论(0) 推荐(0) 编辑
摘要: NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; // 设置URL [request setURL:[NSURL URLWithString:@"http://www.baidu.com"]]; //请求服务器的... 阅读全文
posted @ 2014-11-28 15:22 i0ject 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 引用:http://blog.csdn.net/lovefqing/article/details/8516536#t3 http://blog.csdn.net/kindazrael/article/details/7917863单例模式用于当一个类只能有一个实例的时候,通常情况下这个“单例”... 阅读全文
posted @ 2014-11-25 11:59 i0ject 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.2cto.com/kf/201401/274753.html http://blog.sina.com.cn/s/blog_a170e5c80101gsdj.html http://blog.csdn.net/perfect_promise/article/de... 阅读全文
posted @ 2014-11-25 10:25 i0ject 阅读(878) 评论(0) 推荐(0) 编辑
摘要: 参考:http://blog.sina.com.cn/s/blog_6b8c3d7a01017m87.html http://www.cocoachina.com/bbs/read.php?tid=75122&page=1抗锯齿渲染(抗锯齿渲染就是在后期渲染时将物体边缘呈现的三角形的锯齿进行平滑... 阅读全文
posted @ 2014-11-17 10:43 i0ject 阅读(304) 评论(0) 推荐(0) 编辑
摘要: #pragma 画虚线 UIImageView *imageView1 = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 640)]; imageView1.backgroundColor = [UIColor redColor];... 阅读全文
posted @ 2014-11-13 11:33 i0ject 阅读(863) 评论(0) 推荐(0) 编辑
摘要: 在实现一个TableView时需要实现两个代理方法实现- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;- (UITableViewCell*)tableView:(UIT... 阅读全文
posted @ 2014-11-12 10:45 i0ject 阅读(306) 评论(0) 推荐(0) 编辑