22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
-
+
|
@throw e;
}
return self;
}
```
With ARC, `-fobjc-arc-exceptions` is required, which makes the compiler handle releasing `self` on an exception automatically. This means that the same `init` methid with ARC shoud look like this:
With ARC, `-fobjc-arc-exceptions` is required, which makes the compiler handle releasing `self` on an exception automatically. This means that the same `init` method with ARC should look like this:
```objc
- (instancetype)init
{
self = [super init];
_myIVar = somethingThatCanFail();
|