摘要: //找出一个数组NSFileManager*fileManager=[NSFileManagerdefaultManager];NSString*defaultPath=[[NSBundlemainBundle]resourcePath];NSError*error;NSArray*directoryContents=[fileManagercontentsOfDirectoryAtPath:defaultPatherror:&error]//匹配字符串,反回结果,SELF==表示数组中每一个元素NSString*match=@"imagexyz-999.png"; 阅读全文
posted @ 2011-05-28 21:10 HA-LOU 阅读(685) 评论(0) 推荐(0) 编辑
摘要: When working withNSURLobjects, often times there are a number of values passed along with the URL. For example, a query string is often included as a means to embed HTML form data. This tip shows how to parse and print the values of a URL.The code below begins by defining a URL and is followed by lo 阅读全文
posted @ 2011-05-24 09:24 HA-LOU 阅读(1793) 评论(0) 推荐(0) 编辑
摘要: 分支与合并 阅读全文
posted @ 2011-04-25 22:01 HA-LOU 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 号称是Node.JS 最专业中文社区 阅读全文
posted @ 2011-04-22 09:12 HA-LOU 阅读(283) 评论(0) 推荐(0) 编辑
摘要: node.js 安装小计github项目nodejs官网各种系统安装Node.jshow-to-install-nodejshttp://help.github.com/mac-set-up-git/学习服务器端的JavaScript_Node.jsNode.js:用JavaScript写服务器端程序-介绍并写个MVC框架 阅读全文
posted @ 2011-04-21 21:49 HA-LOU 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 1.莫名碰到[[[Class alloc] init] autorelease] 调用时执行-(id)initWithFrame:(CGRect)frame原因:没有 重载init方法,就默认执行 重载的frame方法2.UISerachBar 去除背景框for (UIView *subview in searchBar.subviews) { if ([subview isKindOfClass:NSClassFromString(@"UISearchBarBackground")]) { [subview removeFromSuperview]; break; }}3 阅读全文
posted @ 2011-03-23 11:17 HA-LOU 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 设备被拿走,问题无法重现,只能先记录一下了导航到工程目录下, 删除整个Build目录 。相关链接:“Failed to upload *.app on Device ” Error in iPhone该方法跟clean all 的区别是可以删除 app.build, 阅读全文
posted @ 2011-03-23 11:03 HA-LOU 阅读(658) 评论(0) 推荐(0) 编辑
摘要: google店上线,继续给力HTML5等web技术,留些学习资料 。google code 下的开发者帮助中心[app的资料还比较少哈,开发应该大同小不一样]浏览器插件开发app开发获取当前页面的urlchrome.tabs.query({ currentWindow:true, active:true},function(tabs){ console.log(tabs[0]); });切换tab时的监听function checkForValidUrl(tab) { //...}chrome.tabs.onUpdated.addListener(function(tabId, cha... 阅读全文
posted @ 2010-12-09 08:58 HA-LOU 阅读(282) 评论(0) 推荐(0) 编辑
摘要: CCMenuItem菜单的一些特效cocos2d-iphone最新版本:[google code] 新址github.comHow To Drag and Drop Sprites with Cocos2D在 cocos2d 中判断互相重叠的 CCMenuItem关于绘线:drawPrimitivesTest.mhow-to-draw-a-line-with-cocos2d-iphone 阅读全文
posted @ 2010-11-18 09:31 HA-LOU 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Xcode使用入门 阅读全文
posted @ 2010-11-13 11:44 HA-LOU 阅读(362) 评论(0) 推荐(0) 编辑