代码改变世界

随笔档案-2012年11月

svn status '~'

2012-11-21 17:35 by -king, 2675 阅读, 收藏,
摘要: svn status 出现'~'时 提交会显示错误 xx/xx.svn' containing working copy admin area is missing’~’Item is versioned as one kind of object (file, directory, link), but has been replaced by different kind of object.解决办法:先把'~'状态的文件夹改为其他名字 删除文件夹并提交 在把名字改回来 添加并提交1. mv Test Test1 2. svn remove Test 阅读全文

GMGridView cell button

2012-11-16 21:26 by -king, 337 阅读, 收藏,
摘要: 在GMGridView的cell里面添加button的时候,不能响应touch up inside事件。解决方法:https://github.com/gmoledina/GMGridView/issues/68在gmgridview.m文件中作修改,添加以下方法可解决问题。- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{ if ( gestureRecognizer == _tapGesture || gestureRecogni... 阅读全文

How To Set SVN_EDITOR Environment Variable To Vim

2012-11-09 14:14 by -king, 376 阅读, 收藏,
摘要: Problem: You are trying to use the command svn propedit svn:externals and you are receiving the error:svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was foundSolution: Set vim as your SVN_EDITORCommand:export SVN 阅读全文

NSURL中fileURLWithPath和URLWithString

2012-11-08 15:49 by -king, 1645 阅读, 收藏,
摘要: NSString *str=@"http://t3.qpic.cn/mblogpic/d05a8de7423b76095d7c/460";NSURL *url1=[NSURL fileURLWithPath:str];NSURL *url2=[NSURL URLWithString:str];NSLog(@"url1=%@",url1);NSLog(@"url2=%@",url2);输出结果为:url1=http:/t3.qpic.cn/mblogpic/d05a8de7423b76095d7c/460 -- file://local 阅读全文