摘要:
#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! 阅读全文
摘要:
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 阅读全文
摘要:
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa1 in position 228: invalid start byte在django的html文件中用了…这个号会出错如上。…是半个中文省略号~ 阅读全文
摘要:
不知道是不是不用xib比较爽,但是,要记得的东西非常多,因为每个对象的方法为了可以自描述都非常长,在emacs上写实在锻炼大脑。极速写了一个navigationController的Demo先上地址.https://github.com/snowleung/navigation_ios然后是思路:声明一个UINavigationController1、在appDelegate这些文件中,会创建一个window这个window之上,可以写界面,window继承自view。2、-(BOOL)application:(UIApplication*)applicationdidFinishLaunch 阅读全文
摘要:
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 阅读全文
摘要:
http://stackoverflow.com/questions/1187611/how-to-install-iphone-application-in-iphone-simulator 阅读全文
摘要:
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的可怜小硬盘!! 阅读全文
摘要:
先安装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- 阅读全文