- 博客(10)
- 资源 (19)
- 收藏
- 关注
原创 十六进制字符串转化为十进制值strtoul函数
eg:NSString *strtest =@"7fffffff"; NSUInteger val = strtoul([[strtest substringWithRange:NSMakeRange(0, 8)] UTF8String], 0, 16); NSLog(@"val = %d", val);打印结果:2015-09-28 17:26:51.420 iOSTest[28
2015-09-28 17:32:29 8697 1
原创 关于[[NSNotificationCenter defaultCenter] addObserver不remove后续又收到通知crash问题
今天试了一个小demo,测出一个现象,同步出来:object 作为 observer 监听了通知 A,然后 object 中途被释放执行了dealloc,随后app发出这个通知 A:iOS 6、iOS 7、iOS 8: 必挂iOS 9:不会挂真机测试。iOS 9.0 Documentation, 最新文档:- addObserver:selector:name:object: 是说要添加remov
2015-09-23 19:12:20 8772
原创 No Team Selected:A team must be selected to run 'ProjectName' on iPhoneName
1. 现象:发布在 app store 的 qzone,app bundle identifier:com.tencent.qzone证书支持com.tencent.*然后自已写的测试demo,bundle identifier:com.tencent.iOSTest拿了一堆将机器identifier添加进device list里了的机器,来真机运行这个demo,结果发现有的机器可以运行,有的机器
2015-09-23 18:33:31 14238
原创 打开Voice Over时,CATextLayer的string对象兼容NSString和NSAttributedString导致的Crash(二解决思路3)
续前一篇: 打开Voice Over时,CATextLayer的string对象兼容NSString和NSAttributedString导致的Crash(二解决思路2)ok,到这里已经能够锁定范围了,看看po $r0的打印结果:再看看qzone的当前界面:即而局第一条feeds的昵称时挂掉了。经过追查昵称布局,发现同事写的一个class有些问题,废话不多说看代码:@interface QZShi
2015-09-19 21:59:19 6891
原创 打开Voice Over时,CATextLayer的string对象兼容NSString和NSAttributedString导致的Crash(二解决思路2)
接上一篇:打开Voice Over时,CATextLayer的string对象兼容NSString和NSAttributedString导致的Crash(二解决思路1)有了以上背景,可知objc_msgSend第一个参数是obj,第二个selector,第三个即selector的第一个参数。打印下看看:因为向r0(NSString)发送attributesAtIndex:effectiveRang
2015-09-19 21:38:22 8130
原创 打开Voice Over时,CATextLayer的string对象兼容NSString和NSAttributedString导致的Crash(二解决思路1)
二、解决思路:利用Xcode符号断点。crash堆栈里面有一个很明显的信息,即-[NSObject(NSObject) doesNotRecognizeSelector:],所以然后开着voice over,编译真机运行Qzone,然后程序走到这里停了:=============================================================这里插入一点Runtim
2015-09-19 21:20:17 8785
原创 打开Voice Over时,CATextLayer的string对象兼容NSString和NSAttributedString导致的Crash(一现象)
一、现象:iPhone真机打开Voice Over的情况下,iPhone QQ空间工程,Xcode 真机编译启动必Crash,main函数里面 NSSetUncaughtExceptionHandler 捕获到Exception:捕获异常函数:static void UncaughtExceptionHandler(NSException* exp){ QZLOG_ERROR(@"QZo
2015-09-19 21:05:02 17817
原创 打开Voice Over时,CATextLayer的string对象兼容NSString和NSAttributedString导致的Crash
一、现象:iPhone真机打开Voice Over的情况下,iPhone QQ空间工程,Xcode 真机编译启动必Crash,main函数里面 NSSetUncaughtExceptionHandler 捕获到Exception:捕获异常函数:static void UncaughtExceptionHandler(NSException* exp){ QZLOG_ERROR(@"QZo
2015-09-19 20:59:34 3662
原创 NSDictionary writeToFile:atomically: 时失败
一、现象:如下图,当NSDictionary调用 writeToFile:atomically: 时,如果容器里面包含的对象(即通过 objectForKey: 拿到的对象),为非property list objects 对象,则写入会失败。如果容器里面包含的对象也是容器,则递归考察是不是property list objects ,不是则写入失败。苹果官方文档:二、解决方案:dic调用 set
2015-09-18 21:45:29 11146
原创 Not saving crash log because we have reached the limit for logs to store on disk.解决办法
一、问题简述:Xcode, window》Devices》DEVICES选中自已的设备,打开控制台:提示日志存量已达限制,这个是系统抛出的log。"Not saving crash log because we have reached the limit for logs to store on disk. Sync or otherwise clear logs from /var/mobil
2015-09-18 21:18:55 5400
Procedure Call Standard for the ARM 64-bit Architecture (AArch64)
2015-09-19
Procedure Call Standard for the ARM® Architecture
2015-09-19
Xib设计UITableViewCell然后动态加载
2012-02-14
android-1.5-cupcake-src.zip
2011-10-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人