05 2014 档案

摘要:话不多说,拿来主义,直接上代码!PS:打印最短路径我还不晓得怎么加,如有哪位大神知道,还请mark一下! 1 /*********************************************************************** 2 * File: Fibonacci... 阅读全文
posted @ 2014-05-25 23:39 swu_luo 阅读(1868) 评论(0) 推荐(0) 编辑
摘要:最近项目中需要用到,查了两天资料,还是选择了“拿来主义”,以下是我最满意的几篇:PS:不得不赞一下老外,我再次“崇洋媚外”了,开玩笑了!知识无国界,不过老外的编程习惯真的很好,看着规规矩矩的注释,在做一些适合自己项目的改动时,有点“自惭形秽”的赶脚。慢慢改变自己的编程习惯,Fighting!!!ht... 阅读全文
posted @ 2014-05-25 18:37 swu_luo 阅读(196) 评论(0) 推荐(0) 编辑
摘要:转载自:http://www.cnblogs.com/maxfong/p/3375167.htmliOS7之前的UI为:而在iOS7中,由于设计方面的原因,使得UI变为:修改的方法重写UINavigationItem的setLeftBarButtonItem和setRightBarButtonIte... 阅读全文
posted @ 2014-05-17 18:24 swu_luo 阅读(420) 评论(0) 推荐(0) 编辑
摘要:UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];//button的类型 button.frame = CGRectMake(100, 100,90, 90);//button的frame button.backgro... 阅读全文
posted @ 2014-05-08 11:47 swu_luo 阅读(19783) 评论(0) 推荐(0) 编辑
摘要:iPhone 屏幕适配判断 和 iOS系统版本判断if([[[UIDevicecurrentDevice]systemVersion]floatValue]>=7.0) { // iOS7.0及以上版本系统适配}if([UIScreen mainScreen].bounds.size.heig... 阅读全文
posted @ 2014-05-08 10:35 swu_luo 阅读(372) 评论(0) 推荐(0) 编辑
摘要:工程添加文件后,提示错误:file was built for archive which is not the architecture being linked (i386) Undefined symbols for architecture i386: "_OBJC_CLASS_$_MyVi... 阅读全文
posted @ 2014-05-08 09:22 swu_luo 阅读(307) 评论(0) 推荐(0) 编辑
摘要:btn.frame = CGRectMake(x, y, width, height);[btn setTitle: @"search" forState: UIControlStateNormal];//设置按钮上的自体的大小//[btn setFont: [UIFont systemFontSi... 阅读全文
posted @ 2014-05-06 01:38 swu_luo 阅读(2256) 评论(0) 推荐(0) 编辑
摘要:1. 试了Hide during application launch的勾选选项,不可以2. 试了ViewController中用函数,还是不可以- (BOOL)prefersStatusBarHidden{ return YES;//隐藏为YES,显示为NO}后边找到这个方法,终于可以了,M... 阅读全文
posted @ 2014-05-05 21:19 swu_luo 阅读(388) 评论(2) 推荐(0) 编辑