NSKeyedArchiver : NSCoder

@interface NSData : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>

@protocol NSCoding

- (void)encodeWithCoder:(NSCoder *)aCoder;

- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder; // NS_DESIGNATED_INITIALIZER

@end

@implementation objectX

- (void)encodeWithCoder:(NSCoder *)aCoder

{

}

@end

objectX *ojx = [objectX new];

[NSKeyedArchiver archivedDataWithRootObject:ojx];

* thread #1: tid = 0x125a24, 0x000000010725ac3f nscodingX`-[objectX encodeWithCoder:](self=0x00007fe1abe53540, _cmd="encodeWithCoder:", aCoder=0x00007fe1abe46410) + 47 at objectX.m:16, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1

* frame #0: 0x000000010725ac3f nscodingX`-[objectX encodeWithCoder:](self=0x00007fe1abe53540, _cmd="encodeWithCoder:", aCoder=0x00007fe1abe46410) + 47 at objectX.m:16

frame #1: 0x0000000107354d57 Foundation`_encodeObject + 1259

frame #2: 0x000000010735452e Foundation`+[NSKeyedArchiver archivedDataWithRootObject:] + 162

frame #3: 0x000000010725a89d nscodingX`-[ViewController viewDidLoad](self=0x00007fe1abe539b0, _cmd="viewDidLoad") + 125 at ViewController.m:24

最新文章

  1. BCP笔记整理(二)
  2. HTTP的报文与状态码
  3. java字节流与字符流的区别
  4. 修改页面JS 360浏览器
  5. 再谈collections模块defaultdict()和namedtuple()
  6. dataGrid查询表格
  7. 关于jsp中response.sendRedirect显示错误
  8. :first与:first-child的区别
  9. 学习MVC的一些随笔简单记录
  10. sqlserver 行转列、列转行[转]
  11. Config
  12. printf输出格式
  13. 学习Python Day1
  14. 吴恩达深度学习笔记(deeplearning.ai)之卷积神经网络(二)
  15. ASP.net中用到的JWT
  16. npm安装github包的方式
  17. vue中父组件调用子组件函数
  18. POI中不推荐的方法与其替代的方法
  19. django之简单验证码实现与form表单钩子函数补充
  20. Substring方法(C#,JS,Java,SQL)的区别

热门文章

  1. 剑指阿里P6,25岁小伙怒斩三面,喜提offer(Java研发岗)
  2. MongoDB里做表间关联
  3. java 对象参数去空格方式
  4. Akka-CQRS(7)- CQRS Reader Actor 示范
  5. Java学习:字符串概述与特点
  6. linux中常用命令alias
  7. MyBatis-Plus入门Demo详解
  8. java中System.err.print和System.out.print区别
  9. Springboot - java.lang.IllegalStateException: Failed to load property source from location &#39;classpath:/application.yml&#39;
  10. js如何保留两位小数,并进行四舍五入