0

I have the following code. self.settingsObject is always nil? What is the issue?

.h file
@interface RoomConfigurationViewController : ATBaseViewController {

}
  @property (nonatomic, strong) AttendanceSettings *settingsObject;
@end


.m file
@synthesize settingsObject = _settingsObject;


NSData *settingsData = [[NSUserDefaults standardUserDefaults]     objectForKey:kUserDefaultsSettingsObject];
self.settingsObject = [NSKeyedUnarchiver unarchiveObjectWithData:settingsData];
4

0 回答 0