04 2012 档案

摘要:http://bbs.weiphone.com/read-htm-tid-4008975.html 阅读全文
posted @ 2012-04-25 11:28 lynn_ios 阅读(251) 评论(0) 推荐(0)
摘要:1 -(void)usedSpaceAndfreeSpace{2 NSString* path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] ;3 NSFileManager* fileManager = [[NSFileManager alloc ]init];4 NSDictionary *fileSysAttributes = [fileManager attributesOfFileSystemForPath:... 阅读全文
posted @ 2012-04-25 11:26 lynn_ios 阅读(1224) 评论(0) 推荐(0)
摘要:iPhone OS4.0加入了scale factor,这表示point长度/pixel长度。在分辨率为960*640的设备上,我们知道逻辑坐标系还是不变480*320,那么一个point有两个pixel长,所以scale=2.0。在分辨率为480*320的设备商,point和pixel长度相同,scale=1.0。为了程序自动适应分辨率,程序会自动给UIScreen.scale赋值,[UIScreen mainScreen].scale = 1.0 or 2.0。我们编程,画图,窗口,字体等都是矢量图,通过scale能够让我们不管分辨率,按照逻辑坐标480*320来设计界面,效果在所有分辨率 阅读全文
posted @ 2012-04-19 13:29 lynn_ios 阅读(1195) 评论(0) 推荐(0)
摘要:详细的是这样: 0.建立想要保存软件仓库的目录。并在系统设置里面打开Web共享。 sudo su (然后输入密码) mkdir /opt mkdir /opt/svn mkdir /opt/svn/repos 即创建了目录/opt/svn/repos/ 1.创建版本仓库svnadmin create /opt/svn/repos 2.修改授权配置 进入到仓库配置目录 cd /opt/svn/repos/conf (1)编辑配置文件 vi svnserve.conf 取消下列行的注释 anon-access = read auth-access = read password-db = pas. 阅读全文
posted @ 2012-04-17 08:58 lynn_ios 阅读(4485) 评论(1) 推荐(1)