自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Code Heaven

Choose what we love, and love it!

  • 博客(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

IMG_2900.HEIC.zip

heif文件

2019-10-25

Procedure Call Standard for the ARM 64-bit Architecture (AArch64)

Procedure Call Standard for the ARM 64-bit Architecture (AArch64)

2015-09-19

Procedure Call Standard for the ARM® Architecture

Procedure Call Standard for the ARM® Architecture

2015-09-19

scriptDownloadAppleOpenSourceCode

AppleOpenSource Download shell 脚本

2015-06-23

XZ Utils 5.0.3

Mac OS X、Linux下面*.tar.xz文档解压缩命令行工具~!

2013-08-27

Xib设计UITableViewCell然后动态加载

Xib设计UITableViewCell然后动态加载例子,对应博客贴子地址: http://blog.csdn.net/duanyipeng/article/details/7259108

2012-02-14

android-2.3-src.zip

android-2.3-src.zip对应导入到Eclipse中的android.jar的源码

2011-10-28

android-2.3.3-gingerbread-src.zip

android-2.3.3-gingerbread-src.zip

2011-10-28

android-2.3.1-gingerbread-src.zip

android-2.3.1-gingerbread-src.zip

2011-10-28

android-2.2-src.zip

android-2.2-src.zip对应导入Eclipse的andorid.jar源码

2011-10-28

android-2.2-froyo-src.zip

android-2.2-froyo-src.zip

2011-10-28

android-2.1-src.zip

android-2.1-src.zip 对应导入到Eclipse的android.jar的源码。

2011-10-28

android-2.1_r2-sources.jar

android-2.1_r2-sources.jar

2011-10-28

android-1.6_r1-donut-src.zip

android-1.6_r1-donut-src.zip

2011-10-28

android-1.5-cupcake-src.zip

android-1.5-cupcake-src.zip用于导入到Eclipse中的对应android.jar的java源码。

2011-10-28

腾讯2011求职大礼包

腾讯2011求职大礼包.pdf 腾讯2011年各部门面试题相关!

2010-12-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除