phoenix13

导航

 

2012年2月3日

摘要: 1.获取时间long begin=System.currentTimeMillis();//单位毫秒long end=System.nanoTime();//单位纳秒Date d = new Date();long longtime = d.getTime();System.out.println(longtime);String time = d.toLocaleString();System.out.println(time);//标准格式时间2.String和int互转(1)int to stringint ->Stringint i= 10;String s = "&q 阅读全文
posted @ 2012-02-03 22:03 phoenix13 阅读(203) 评论(0) 推荐(0) 编辑
 

2012年2月2日

摘要: http://blog.csdn.net/zhthaitao222/article/details/4816329exe4j: 让你的class变成exe可执行文件 阅读全文
posted @ 2012-02-02 23:29 phoenix13 阅读(136) 评论(0) 推荐(0) 编辑
 

2012年2月1日

摘要: 0.IBOutlet就是控件IBAction相当于voidhttp://www.2cto.com/kf/201111/110593.html IOS开发笔记 (4) ---第一个IOS界面程序兼谈IB在XCode4.2中的应用1.alert控件:点击button弹出alert。UIAlertView * alert1=[[UIAlertView alloc] initWithTitle:@"myView" message:@"hahah" delegate:self cancelButtonTitle:@"确定"otherButton 阅读全文
posted @ 2012-02-01 17:25 phoenix13 阅读(1481) 评论(0) 推荐(0) 编辑
 
摘要: http://blog.csdn.net/lutaotony/article/details/6863986 Object-c学习笔记1.NSLog:控制台输出,用法和 printf 基本一样。‘NS’ 前缀表示这个函数来自于NEXTSTEP的Cocoa框架。 NSLog (“base 8: %o\n”, num); 2.数组初始化:int a[] = { [9] = x + 1, [2] = 3 };//10 个元素的数组,给a[9]和a[2]赋值//创建一个不可变的数组 NSArray *array= [NSArray arrayWithObjects:@"雨松", @ 阅读全文
posted @ 2012-02-01 14:55 phoenix13 阅读(1636) 评论(0) 推荐(0) 编辑
 
摘要: 44jason58518发表于2011-7-2716:41请问LZ,这个安装后,可以升级10.6.7或10.6.8么?可以升级~~~51gouda发表于2011-7-2717:41请问楼主,这个版本,如果CPU不支持VT能用虚拟机玩吗,谢谢不可以~必须CPU支持VT65高速链接帮你分流一下,到8月7号~在下面的帖子里http://bbs.pcbeta.com/viewthread-899460-1-1.html74如何硬盘安装啊别人都是dmg格式的点评slhyxblISO也可以用硬盘安装助手写入81wchb发表于2011-7-2719:45楼主你的这个我刚下完,用7z解压后的iso文件里只有一 阅读全文
posted @ 2012-02-01 08:47 phoenix13 阅读(1539) 评论(0) 推荐(0) 编辑
 

2012年1月27日

摘要: 1.单个元素去重if e not in myList: myList.append(e) 2.把一个list去重后放入另一个listtotal=['1','2','3']so=['1','4'][total.append(e) for e in so if not e in total]print totalhttp://www.peterbe.com/plog/uniqifiers-benchmark/ Fastest way to uniqify a list in Python 阅读全文
posted @ 2012-01-27 22:38 phoenix13 阅读(815) 评论(0) 推荐(0) 编辑
 
摘要: 变量:传值list:传引用http://blog.csdn.net/winterttr/article/details/2590741 Python的函数参数传递:传值?引用? 阅读全文
posted @ 2012-01-27 16:57 phoenix13 阅读(188) 评论(0) 推荐(0) 编辑
 

2012年1月19日

摘要: http://www.youtube.com/watch?v=dXvMEGsY700 Saying Hello to World using iOS5 and Xcode 4.2目标:创建一个iphone应用,一点按钮显示hello。1.创建一个Single View Application2.在xib文件中添加2个控件:Label 和 Round Rect Button3.右键拖动label,划一条线到ViewControl.h,给label起个名字。4.在ViewControl.h中定义方法showHello,用来改变label的显示。并在ViewControl.m中实现方法。5.右键单. 阅读全文
posted @ 2012-01-19 11:24 phoenix13 阅读(520) 评论(0) 推荐(0) 编辑
 
摘要: ios project结构与文件类型1.分4个目录(1)[projectName]: .h: 头文件 .m: 已编译类,用来实现.h中的定义。 .plist: XML文件,一个类似于properties文件,这个文件包含了关于应用程序的Name,icon等基本信息 .xib: XMLInterface Builder UI文件 http://www.surfchen.org/archives/393 xib和nib(2) [projectName]Tests:(3) Frameworks:(4) Products:http://rangyang163.blog.163.com... 阅读全文
posted @ 2012-01-19 11:22 phoenix13 阅读(250) 评论(0) 推荐(0) 编辑
 

2012年1月18日

摘要: 1.切换输入法ALT+command+空格=Windons下的Ctrl+Shiftcommand+空格=Windows下的Ctrl+空格2.在Mac OS中,有非常方便的截屏快捷键:Command-Shift-3: 对整个屏幕截屏,图片会保存的一个文件中(默认保存的桌面上)Command-Ctrl-Shift-3: 对整个屏幕截屏,图片被保存到剪贴板(夹纸板)中。Command-Shift-4: 对选定区域进行截屏,并将图片保存到文件中(默认保存的桌面上)。在触发这个快捷键后,按空格(Space)键,可以对一整个窗口或菜单进行截屏。Command-Ctrl-Shift-4: 对选定区域进行截屏 阅读全文
posted @ 2012-01-18 15:41 phoenix13 阅读(217) 评论(0) 推荐(0) 编辑