mac svn 删除.svn隐藏文件的命令

来源:互联网 发布:js星空效果 编辑:程序博客网 时间:2024/04/28 19:51

打开终端,进到所在的目录,然后出入一下代码

find . -name ".svn" | xargs rm -Rf


iPhone开发证书

http://www.cnblogs.com/ifeng/articles/2295859.html


iOS高效开发必备的10款Objective-C类库

http://mobile.51cto.com/hot-249831.htm

 

http://d2100.com/questions/48640

 

牛人BLOG

http://www.cnblogs.com/pinping

iphone开发之常用代码:不断更新

http://www.cnblogs.com/iphone520/archive/2011/12/30/2225160.html


iPhone开发Error全纪录(不断壮大中><)

1. 使用Core Data时Model Class的定义:property必须是Objective C的对象类型,必须声明为nonatomic & retain或 nonatomic ©在.m文件中accessor方法用@dynamic, refenrence里面是strongly recommend这样用的如果property是数字,用NSNumber *,调用的时候再换成需要的类型。例如 cell.text = [NSNumber stringValue: (NSNumber *)];2. 修改.xcdatamodel文件引起的Exception如果在程序已经运行过的情况下更改了.xcdatamodel文件,原有数据库就作废了,所以无论怎么调试都会出现exception。一般console里面会提示NSPersistentStoreCoordinator has no persistent stores.解决方法:找到.sqlite,然后删掉,重新运行。.sqlite文件在Library/ApplicationSupport/iPhone Simulator/User/Applications/(一堆数字,点进去会看见project名)/Documents/详细参考:http://objitsu.com/blog/2009/10/01/nspersistentstorecoordinator-has-no-persistent-stores/3. 所有跟text有关的UI类的setText方法只能用NSString,否则会有warning,如果不管这个warning运行时会exception.4. 如何调试EXE_BAD_ACCESS详细参考:http://www.codza.com/how-to-debug-exc_bad_access-on-iphone5. unrecognized selector sent to instance xxxx造成unrecognized selector sent to instance iphone,大部分情况下是因为对象被提前release了,在你心里不希望他release的情况下,指针还在,对象已经不在了。很多时候,是因为init初始化函数中,对属性赋值没有使用self.foo赋值,而是直接对foo赋值,导致属性对象没有retain(心里以为retain了),而提前释放。有时候也能是初始化函数用错了。解决方法:检查release和init6. Can’t merge models with two different entities named xxxx修改了Core Data的数据模型后,因为版本问题出现的Exception解决办法:Build —>clear all target参考资料:Core Data Migration and Versionhttp://www.timisted.net/blog/archive/core-data-migration/7. could not locate an NSManagedObjectModel for entity namemanagedObjectContext没有初始化,所以无法读取model的值调试方法:将appDelegate的context传给viewController前,要将viewController的context初始化,囧囧是写在initWithNibName里的 8.UITableView的数据源排序为降序时,记得CellForRowAtIndexPath里面不要用if(Cell ==nil)的条件去掉,否则数据更新会错。。。9. 使用Core Data时,实体类的relationship在fetch的时候只作为fault被调用fault是为了保证模型完整的一种东西,比如说A有个relationship ,这个关系的目标是B,那fetch A的时候,B只是个fault,你是无法访问B的属性的,因为B根本没被fetch ,下面是囧囧的解决方法,也不知道对不对,哈哈哈哈- - [fetchRequest setReturnsObjectsAsFaults:NO]; #iPhone# 释放subview,最好不要直接release,使用 removeFromSuperview 替代更优,否则容易出现错误:modifying layer that is being finalized