摘要: 1 An instance ofALAssetsLibraryprovides access to the videos and photos that are under the control of the Photos application. The library includes those that are in the Saved Photos album, those coming from iTunes, and those that were directly imported into the device. You use it to retrieve the lis 阅读全文
posted @ 2013-03-07 10:47 xuvw 阅读(160) 评论(0) 推荐(0) 编辑
摘要: /***坐标转换函数,从原始GPS坐标,mapbar坐标转换成百度坐标*@paramcoorWgs84 待转换的原始GPS坐标,或者mapbar的坐标*@return返回的NSDictionry中包含“x”,“y”字段,各自对应经过base64加密之后的x,y坐标*/UIKIT_EXTERN NSDictionary* BMKBaiduCoorForWgs84(CLLocationCoordinate2D coorWgs84);/***坐标转换函数,从google坐标,51地图坐标,mapabc坐标转换为百度坐标(51地图坐标需要显出10000)*@paramcoorGcj 待转换的googl 阅读全文
posted @ 2013-03-05 01:17 xuvw 阅读(2143) 评论(0) 推荐(0) 编辑
摘要: http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html 阅读全文
posted @ 2013-02-18 11:12 xuvw 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 207.97.227.239 github.com207.97.227.252 nodeload.github.com207.97.227.243 raw.github.com204.232.175.78 documentcloud.github.com#:sudonano/etc/hosts#:按ctrl + x退出#:Y 阅读全文
posted @ 2013-01-23 14:11 xuvw 阅读(168) 评论(0) 推荐(0) 编辑
摘要: FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);FOUNDATION_EXPORT SEL NSSelectorFromString(NSString *aSelectorName);FOUNDATION_EXPORT NSString *NSStringFromClass(Class aClass);FOUNDATION_EXPORT Class NSClassFromString(NSString *aClassName);FOUNDATION_EXPORT NSString *NSStringFromProt 阅读全文
posted @ 2013-01-11 18:13 xuvw 阅读(206) 评论(0) 推荐(0) 编辑
摘要: http://www.reddit.com/r/programminghttp://www.techotopia.com/index.php/Objective-C_2.0_Essentials oc classical 阅读全文
posted @ 2012-12-25 14:02 xuvw 阅读(169) 评论(0) 推荐(0) 编辑
摘要: status (stat, st): Print the status of working copy files and directories.usage: status [PATH...] With no args, print only locally modified items (no network access). With -q, print only summary information about locally modified items. With -u, add working revision and server out-of-date informa... 阅读全文
posted @ 2012-12-20 11:30 xuvw 阅读(642) 评论(0) 推荐(0) 编辑
摘要: #include<sys/socket.h>// Per msqr#include<sys/sysctl.h>#include<net/if.h>#include<net/if_dl.h>#pragma mark MAC// Return the local MAC addy// Courtesy of FreeBSD hackers email list// Accidentally munged during previous update. Fixed thanks to mlamb.- (NSString*) macaddress{int 阅读全文
posted @ 2012-12-18 15:38 xuvw 阅读(1515) 评论(0) 推荐(0) 编辑
摘要: 来自:http://www.sqlite.org/omitted.htmlSQL Features That SQLite Does Not ImplementRather than try to list all the features of SQL92 that SQLite does support, it is much easier to list those that it does not. Unsupported features of SQL92 are shown below.The order of this list gives some hint as to whe 阅读全文
posted @ 2012-12-15 12:57 xuvw 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 链接:http://www.taobaotest.com/blogs/qa?bid=15413于是验证通过ssh连接发送shell命令执行instruments,确实会提示要输入用户名密码,所以导致卡在应用启动界面。而kelude输出的日志估计做过处理把这些异常吃掉了看不到要输入用户名密码情况所以会以为是卡住了,原因终于找到了。OS升级后,估计是加强了这方面的安全策略,10.7.2则无此问题。搜索了很多资料,许多iphone程序员也对此弹出极其苦恼。尝试了N种方法,终于解决。解决办法:修改 /etc/authorization文件。找到key为system.privilege.taskport 阅读全文
posted @ 2012-12-07 22:20 xuvw 阅读(156) 评论(0) 推荐(0) 编辑