Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (instancetype)init
- {
- self = [super init]; // Is potentially nil
- if (self)
- {
- // Initialization code here…
- }
- return self;
- }
- self.myVar = ...; // fine
- _myVar = ...; // fine
- self = nil;
- self.myVar = ...; // fine
- _myVar = ...; // wrong
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement