PAPreferences通过 NSUserDefaults 存储用户配置信息
PAPreferences 提供一个很方便的方式,通过 NSUserDefaults 存储用户配置信息。
示例代码:
#import "PAPreferences.h"
@interface MyPreferences : PAPreferences
@property (nonatomic, assign) NSString *theme;
@property (nonatomic, assign) NSArray *favorites;
@property (nonatomic, assign) BOOL hasSeenIntro;
@end
评论
