I have made a test Project to understand resetting UserDefaults.
A label’s value is bound to the shared UserDefaults in the UI, and works as
expected when the Defaults are updated
@IBAction fun changeMeaningOfLife……...
let meaning = Int(arc4random() % 99)
NSUserDefaults.standardUserDefault
Yes, I was looking at it, but I’m confused how it knows the difference between
self and super?
e.g.
[self init]; and [super init];
I suppose it could check if it’s calling the same method as the one it’s
calling from and use super in that case, but it seems strange, do this in
Objective-C res
On 2 Nov 2015, at 12:59 AM, Dave wrote:
>
> Yes, I was looking at it, but I’m confused how it knows the difference
> between self and super?
I misread you code. If you really want to do this:
-(void) initWithParam:(NSString*) theParam
{
self = [self initWithParam:theParam andAnotherParam:nil];