- 博客(12)
- 收藏
- 关注
原创 iOS [UIKeyboardLayoutStar release]: message sent to deallocated
使用MethodSwizzle 实现对数组、字典 等系统方法的安全校验。显然能达到预期效果,但实际发现当键盘显示的情况下 home app 进入后台,再单击app 图标 切换回前台时 发生crash : [UIKeyboardLayoutStar release]: message sent to deallocated instance UIKeyboardLayoutStar
2015-05-22 10:17:37 3404
原创 Your app contains non-public API usage. Please review the errors, correct them, and resubmit your ap
app提交AppStore遇到问题: Your app contains non-public API usage. Please review the errors, correct them, and resubmit your application. The app references non-public symbols in Payload/XXX.app/XXX: UICrea
2015-05-22 10:13:29 1681
原创 iOS 解决Charles无法抓取Xcode6的Simulator数据包问题
官网给出解决办法:http://www.charlesproxy.com/documentation/faqs/ssl-connections-from-within-iphone-applications/ 1、charles->Help -> Install Cahrles CA SSL Certificatein iOS Simulators (charles 3.9.3以上) 2、重启
2015-05-20 11:32:25 4623
原创 iOS UITableViewCell上的双击事件
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { tableSelection = indexPath; tapCount++; switch (tapCount) { case 1: //single tap
2015-05-19 13:46:46 2128 1
原创 iOS 字符串遍历
遍历字符串 在oc中遍历字符串的至少可以使用以下两种方法 (1) 通过查找的方式来(这方式适合所有格式的子符串,推荐使用) NSString *newStr =@"abdcdddccdd00大家好哦"; NSString *temp = nil; for(int i =0; i < [newStr length]; i++) { temp
2015-05-14 09:38:04 2577
原创 iOS NSString字符串反转的问题
/**** NSString+Reverse.h ****/ #import @interface NSString (Reverse) - (NSString *)stringByReversed; @end /**** NSString+Reverse.m ****/ #import "NSString+Reverse.h" @implementation NSString (Revers
2015-05-14 09:36:05 4272
原创 iOS 统计xcode代码行数
如果要统计ios开发代码,包括头文件的,终端命令进入项目目录下,命令如下 find . -name "*.m" -or -name "*.h" -or -name "*.xib" -or -name "*.c" |xargs wc -l 列出每个文件的行数 find . -name "*.m" -or -name "*.h" -or -name
2015-05-14 09:34:37 744
原创 iOS 展示类间依赖关系的有向图--ObjectGraph-Xcode
是一款基于objc_dep和Graphviz的Xcode插件,可以展示项目中类之间依赖关系的有向图。 ps:记得先安装brew环境 GitHub链接:https://github.com/vampirewalk/ObjectGraph-XcodeObjectGraph
2015-05-14 09:32:52 2084
转载 iOS 动态修改UINavigationBar的背景色
mak!!! https://mp.weixin.qq.com/s?__biz=MzA3NzM0NzkxMQ==&mid=204611759&idx=1&sn=254b0f1d7d16a4cf747e14b9670c7ed1&key=2e5b2e802b7041cf772053ebb8108a92c105b45dbddc521711ba00bc3dfad3a0614403c01caf3caf5b
2015-05-09 16:12:17 912
转载 git 解决Xcode中使用Git时出现This file does not exist at the requested revision.
最近升级了Xcode4.3,使用过程中切换到Version Editor进行对比时,一部分文件出现了”This file does not existat the requested revision.”,但是该文件确实是在Git的管理下。 之前我尝试过删除项目的Derived Data(方法请参考我的另一篇文章Xcode4中代码补全(Code Completion)失效的解决方案),有
2015-05-09 16:08:56 2468
原创 iOS 解决iOS7左边缘滑动UIScroView不能返回上一级视图
#import "UIScrollView+MTCategory.h" @implementation UIScrollView (MTCategory) #pragma mark - 解决iOS7下UIScroView不能滑动返回 - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogniz
2015-05-05 09:57:43 1320
原创 iOS [MTMeViewController scrollViewDidScroll:]: message sent to deallocated instance
原因已经很明显,实例被释放,但scrollView还在滚动时退出了试图,应该释放scrollView代理 - (void)dealloc { _topScrollView.delegate = nil; }
2015-05-04 11:50:29 1230
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人