摘要: #import "yourview.m";if you use this import operation,you will get this error:clang: error: linker command failed with exit code 1 (use -v to see invocation)use #import "yourview.h"; to fix it! 阅读全文
posted @ 2012-06-29 15:24 snowlueng 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 1.do this like this post:http://blog.csdn.net/i3039/article/details/69437922.if you are xcode4.3 and lion,you will get this error:"Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path."don't worry about this,go to this link 阅读全文
posted @ 2012-06-22 21:11 snowlueng 阅读(143) 评论(0) 推荐(0) 编辑
摘要: UnicodeDecodeError: 'utf8' codec can't decode byte 0xa1 in position 228: invalid start byte在django的html文件中用了…这个号会出错如上。…是半个中文省略号~ 阅读全文
posted @ 2012-06-21 20:33 snowlueng 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 不知道是不是不用xib比较爽,但是,要记得的东西非常多,因为每个对象的方法为了可以自描述都非常长,在emacs上写实在锻炼大脑。极速写了一个navigationController的Demo先上地址.https://github.com/snowleung/navigation_ios然后是思路:声明一个UINavigationController1、在appDelegate这些文件中,会创建一个window这个window之上,可以写界面,window继承自view。2、-(BOOL)application:(UIApplication*)applicationdidFinishLaunch 阅读全文
posted @ 2012-06-21 00:36 snowlueng 阅读(236) 评论(0) 推荐(0) 编辑
摘要: job:挖坑。1、一个人挖一个坑要2hours.2、我要挖两个坑。从这里引出并行。objc中有dispatch object 来做多线程的事。这样,又可以看看关于dispatch的那些事。比如我要下载两个图片,就好像是上面的挖两个坑!代码如下 :dispatch_queue_tmyQueue=dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0);dispatch_async(myQueue,^{__blockUIImage*img=nil;dispatch_async(myQueue,^{NSLog(@"testin 阅读全文
posted @ 2012-06-21 00:34 snowlueng 阅读(298) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/1187611/how-to-install-iphone-application-in-iphone-simulator 阅读全文
posted @ 2012-06-17 12:44 snowlueng 阅读(167) 评论(0) 推荐(0) 编辑
摘要: xcode4.3已经没有打包gcc了,所以我的lion os没有gcc这个。其实可以下载gcc来做编译,但是,用xcode的应该会比原来的有更多优化选项吧?上地址:https://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_4_3.html这样就可以下载Command Line Tools有100多M,我正在下载……air的可怜小硬盘!! 阅读全文
posted @ 2012-06-12 19:49 snowlueng 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 先安装auto-complete.地址:https://github.com/m2ym/auto-complete安装方法:进入emacs,打m-x:eshell在eshell中,再m-x:load-file /yourdownloadpath/auto-compelte_{ver}/etc/install.el就可以看到提示successcopy this code into your .emacs file:(add-to-list'load-path"~/.emacs.d/")(require'auto-complete-config)(add-to- 阅读全文
posted @ 2012-06-12 14:13 snowlueng 阅读(610) 评论(0) 推荐(0) 编辑
摘要: IE9也不支持,我晕。目前知道chrome,safari支持的。好先上资料http://www.ibm.com/developerworks/web/library/wa-offlineweb/http://www.ibm.com/developerworks/cn/opensource/os-androidiphone2/index.htmlhttp://www.ibm.com/developerworks/cn/xml/x-html5mobile2/http://www.ibm.com/developerworks/cn/xml/x-html5mobile3/iOS Web App 开发心 阅读全文
posted @ 2012-05-24 22:30 snowlueng 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 如果我想用本地图片帮定到django models的imagefield,要怎么做?如下:fromdjango.core.filesimportFileimg=File(open(your_local_image_file))s=some_model.create(image=img)s.save()即可~! 阅读全文
posted @ 2012-05-06 19:55 snowlueng 阅读(263) 评论(0) 推荐(0) 编辑