摘要: ubuntu上配置git服务器git使用小结最简git Server配置玩转git,让git成为个人工作备份利器(即使是电脑小白也推荐学习)git寻根——^和~的区别Git教程【译】 阅读全文
posted @ 2013-06-24 15:36 yshch 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 搭建代码审查系统Gerrit 阅读全文
posted @ 2013-06-24 15:26 yshch 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 官方源码RestKit学习1:引用RestKit项目RestKit学习2:使用RestKit发送和接受请求RestKit学习3:CoreData 从模型到实体RestKit学习4:Database Seeding(生成数据库文件) 阅读全文
posted @ 2013-06-24 15:15 yshch 阅读(230) 评论(0) 推荐(0) 编辑
摘要: IOS开发之----#import、#include和@class的区别转自:http://blog.sina.com.cn/s/blog_71715bf80101a8t8.html1. 一般来说,导入objective c的头文件时用#import,包含c/c++头文件时用#include。2. #import 确定一个文件只能被导入一次,这使你在递归包含中不会出现问题。<标记> 所以,#import比起#include的好处就是不会引起交叉编译。#import &&#class:1.import会包含这个类的所有信息,包括实体变量和方法(.h文件中),而@cla 阅读全文
posted @ 2013-06-06 19:54 yshch 阅读(245) 评论(0) 推荐(0) 编辑
摘要: reference: http://blog.sina.com.cn/s/blog_722017670100v2b4.htmlnil: A null pointer to an Objective-C object. ( #define nil ((id)0) ) Nil: A null pointer to an Objective-C class.NULL: A null pointer to anything else. ( #define NULL ((void *)0) ) eg.SEL、IMP ... If someone sees you passing NULL, they k 阅读全文
posted @ 2013-06-06 16:02 yshch 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 一、获取文件属性的方法: 1> NSDictionary *folderAttr = [[NSFileManager defaultManager] attributesOfFileSystemForPath:NSHomeDirectory() error:nil]; 获取文件夹大小:[folderAttr objectForKey:NSFileSystemSize]; 剩余空间:[folderAttr objectForKey:NSFileSystemFreeSize]; 代替方法:fileSystemAttributesAtPath 2> NSDictionary * file 阅读全文
posted @ 2013-05-29 22:41 yshch 阅读(800) 评论(0) 推荐(1) 编辑
摘要: 一、旋转处理 第一步:注册通知 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeFrames:) name:UIDeviceOrientationDidChangeNotification object:nil]; 第二把:处理接收事件-(void)changeFrames:(NSNotification *)notification{ NSLog(@"change notification: %@", notification.userInfo); float 阅读全文
posted @ 2013-05-29 22:37 yshch 阅读(3594) 评论(2) 推荐(2) 编辑