0

次のコードがあります。self.settingsObject は常に nil ですか? どうした?

.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