Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 iphone 的 NSUserDefaults 中存储单个链表信息。如果有另一种存储信息的方式,请提及
NSUserDefaults 只能存储标准数据类型,如 NSNumber、NSString、NSDate、NSArray、NSDictionary。您始终可以为您的链表类实现 NSCoding,并使用 Cocoa 的标准归档方法将其保存到磁盘。