Showing
2 changed files
with
7 additions
and
7 deletions
| @@ -153,7 +153,7 @@ static const NSUInteger kDomainSection = 1; | @@ -153,7 +153,7 @@ static const NSUInteger kDomainSection = 1; | ||
| 153 | 153 | ||
| 154 | // Reset the transform so we can set the size | 154 | // Reset the transform so we can set the size |
| 155 | self.view.layer.affineTransform = CGAffineTransformIdentity; | 155 | self.view.layer.affineTransform = CGAffineTransformIdentity; |
| 156 | - self.view.frame = (CGRect){0,0,f.size}; | 156 | + self.view.frame = (CGRect){ { 0, 0 }, f.size}; |
| 157 | 157 | ||
| 158 | // Revert to the previous transform for correct animation | 158 | // Revert to the previous transform for correct animation |
| 159 | self.view.layer.affineTransform = previousTransform; | 159 | self.view.layer.affineTransform = previousTransform; |
| @@ -165,7 +165,7 @@ static const NSUInteger kDomainSection = 1; | @@ -165,7 +165,7 @@ static const NSUInteger kDomainSection = 1; | ||
| 165 | self.view.layer.affineTransform = newTransform; | 165 | self.view.layer.affineTransform = newTransform; |
| 166 | 166 | ||
| 167 | // Fix the view origin | 167 | // Fix the view origin |
| 168 | - self.view.frame = (CGRect){f.origin.x,f.origin.y,self.view.frame.size}; | 168 | + self.view.frame = (CGRect){ { f.origin.x, f.origin.y },self.view.frame.size}; |
| 169 | [UIView commitAnimations]; | 169 | [UIView commitAnimations]; |
| 170 | } | 170 | } |
| 171 | 171 |
| @@ -214,12 +214,12 @@ static void logNetworkStatus_(const char *name, int line, NetworkStatus status) | @@ -214,12 +214,12 @@ static void logNetworkStatus_(const char *name, int line, NetworkStatus status) | ||
| 214 | } // dealloc | 214 | } // dealloc |
| 215 | 215 | ||
| 216 | 216 | ||
| 217 | -- (Reachability *) initWithReachabilityRef: (SCNetworkReachabilityRef) ref { | 217 | +- (Reachability *) initWithReachabilityRef: (SCNetworkReachabilityRef) ref |
| 218 | - | 218 | +{ |
| 219 | - if (self = [super init]) { | 219 | + self = [super init]; |
| 220 | - | 220 | + if (self != nil) |
| 221 | + { | ||
| 221 | reachabilityRef = ref; | 222 | reachabilityRef = ref; |
| 222 | - | ||
| 223 | } | 223 | } |
| 224 | 224 | ||
| 225 | return self; | 225 | return self; |
-
Please register or login to post a comment