NSKeyedArchiver : NSCoder
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
最新文章
- BCP笔记整理(二)
- HTTP的报文与状态码
- java字节流与字符流的区别
- 修改页面JS 360浏览器
- 再谈collections模块defaultdict()和namedtuple()
- dataGrid查询表格
- 关于jsp中response.sendRedirect显示错误
- :first与:first-child的区别
- 学习MVC的一些随笔简单记录
- sqlserver 行转列、列转行[转]
- Config
- printf输出格式
- 学习Python Day1
- 吴恩达深度学习笔记(deeplearning.ai)之卷积神经网络(二)
- ASP.net中用到的JWT
- npm安装github包的方式
- vue中父组件调用子组件函数
- POI中不推荐的方法与其替代的方法
- django之简单验证码实现与form表单钩子函数补充
- Substring方法(C#,JS,Java,SQL)的区别
热门文章
- 剑指阿里P6,25岁小伙怒斩三面,喜提offer(Java研发岗)
- MongoDB里做表间关联
- java 对象参数去空格方式
- Akka-CQRS(7)- CQRS Reader Actor 示范
- Java学习:字符串概述与特点
- linux中常用命令alias
- MyBatis-Plus入门Demo详解
- java中System.err.print和System.out.print区别
- Springboot - java.lang.IllegalStateException: Failed to load property source from location &#39;classpath:/application.yml&#39;
- js如何保留两位小数,并进行四舍五入