上一页 1 2 3 4 5 6 ··· 20 下一页
摘要: 问题:调用了firstresponder ,但键盘并没有显示,必须手动点击一下,才会显示键盘分析:原入口进入是好的,自己新加了个window,从这个winodw的界面中点击进入就不显示了。说明界面本身并没有问题,是自己新加的window导致了键盘弹不出怀疑:1、优先级 排除,因为如果是优先级的问题... 阅读全文
posted @ 2014-10-28 17:17 little_star 阅读(2941) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/baxiaxx/article/details/7878338一、- (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)dela... 阅读全文
posted @ 2014-10-17 11:36 little_star 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.sina.com.cn/s/blog_a573f7990101cdpe.html,尊重原创!一、UIView的setNeedsDisplay和setNeedsLayout方法首先两个方法都是异步执行的。而setNeedsDisplay会调用自动调用drawRect方法... 阅读全文
posted @ 2014-10-13 10:08 little_star 阅读(506) 评论(0) 推荐(0) 编辑
摘要: svn更新代码后,打开xcode工程文件,会出现 xxx..xcodeproj cannot be opened because the project file cannot be parsed.因为.xcodeproj工程文件冲突了,然后还是会强制更新,内部文件出现了冲突,所以解析不了文件.会出... 阅读全文
posted @ 2014-09-19 20:01 little_star 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://mobile.51cto.com/iphone-402981.htm,尊重原创!前言:之前开发Android程序时,我们知道,Looper是线程的消息队列循环,都是先进先出。线程所用的主要是new Thread{},线程间通信采用handler。 ios的多线程有多种实现... 阅读全文
posted @ 2014-09-05 18:24 little_star 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 刚接触xcode,难免遇到各种各样的错误提示,有些概念还是需要了解的。1、provisioning filehttp://www.cocoachina.com/applenews/devnews/2013/0428/6094.html2、待写 阅读全文
posted @ 2014-05-28 17:10 little_star 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 代写 阅读全文
posted @ 2013-12-18 15:26 little_star 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 没有删除本地文件,只是想把从工作区中删除的工程再显示出来,用import的时候提示Some projects cannot be imported because they already exist in the workspace。原因:“一些项目不能进口因为它们已经存在的工作空间”这说明你删除的时候没删除完、再在列表里找找,看有项目残留、删除干净就可以重新import了!办法:1、Some projects cannot be imported because they already exist in the workspace2、Some projects were hidden b 阅读全文
posted @ 2013-09-10 10:15 little_star 阅读(3937) 评论(0) 推荐(0) 编辑
摘要: 1、将日志写入文件 在appDeleagate.m中的didFinishLau....方法里,加上 // 当真机连接Mac调试的时候把这些注释掉,否则log只会输入到文件中,而不能从xcode的监视器中看到。如果是真机就保存到Document目录下的drm.log文件中 UIDevice *d... 阅读全文
posted @ 2013-09-03 15:03 little_star 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 写文件,用fgets读出,发现多了每行多了'\n'。把读出的内容拼凑成string,转换成url时,一直返回nil,表明输入的string不合法。我仔细检查了一下,发现string中多了换行。每个NSString对象,均有一个 stringByTrimmingCharactersInSet 方法。这个方法接受的参数为 NSCharactersInSet 对象。NSCharactersInSet 对象只有两个方法:whitespaceCharacterSet 和 whitespaceAndNewlineCharacterSet。前者仅去除空格;后者不仅去除空格,也会去除换行符。例 阅读全文
posted @ 2013-09-03 13:03 little_star 阅读(1579) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 20 下一页