int ramdomnumber = arc4random_uniform(900000) + 100000;
[[NSUserDefaults standardUserDefaults] setObject:ramdomnumber forKey:@"contactno"];
[[NSUserDefaults standardUserDefaults] synchronize];
i tried the above code but it showing the error like implicit conversion of 'int' to 'id_nullable' is disallowed with ARC.can anyone suggest me how to store the int value in the nsuserdefaults .