Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,10 +1,11 @@
|
|||
@implementation MyClass
|
||||
|
||||
// Was not declared because init is defined in NSObject
|
||||
- (id)init
|
||||
- (instancetype)init
|
||||
{
|
||||
if (self = [super init])
|
||||
variable = 0;
|
||||
if (self = [super init]) {
|
||||
variable = 0; // not strictly necessary as all instance variables are initialized to zero
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue