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];