diff --git a/Classes/BITAppStoreHeader.m b/Classes/BITAppStoreHeader.m index 08a48cc0bf..87a967f4e3 100644 --- a/Classes/BITAppStoreHeader.m +++ b/Classes/BITAppStoreHeader.m @@ -53,7 +53,7 @@ #pragma mark - NSObject -- (id)initWithFrame:(CGRect)frame { +- (instancetype)initWithFrame:(CGRect)frame { if ((self = [super initWithFrame:frame])) { self.autoresizingMask = UIViewAutoresizingFlexibleWidth; self.backgroundColor = kWhiteBackgroundColorDefault; diff --git a/Classes/BITAppVersionMetaInfo.m b/Classes/BITAppVersionMetaInfo.m index 1689ac99f1..24b42160e9 100644 --- a/Classes/BITAppVersionMetaInfo.m +++ b/Classes/BITAppVersionMetaInfo.m @@ -139,7 +139,7 @@ [encoder encodeObject:self.uuids forKey:@"uuids"]; } -- (id)initWithCoder:(NSCoder *)decoder { +- (instancetype)initWithCoder:(NSCoder *)decoder { if ((self = [super init])) { self.name = [decoder decodeObjectForKey:@"name"]; self.version = [decoder decodeObjectForKey:@"version"]; diff --git a/Classes/BITArrowImageAnnotation.m b/Classes/BITArrowImageAnnotation.m index bf6b3454cf..f5daa0a92c 100644 --- a/Classes/BITArrowImageAnnotation.m +++ b/Classes/BITArrowImageAnnotation.m @@ -40,7 +40,7 @@ @implementation BITArrowImageAnnotation -- (id)initWithFrame:(CGRect)frame { +- (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.shapeLayer = [CAShapeLayer layer]; diff --git a/Classes/BITAttributedLabel.m b/Classes/BITAttributedLabel.m index 6c2ddedf06..64f9795dc7 100644 --- a/Classes/BITAttributedLabel.m +++ b/Classes/BITAttributedLabel.m @@ -240,7 +240,7 @@ static inline NSAttributedString * NSAttributedStringBySettingColorFromContext(N @synthesize verticalAlignment = _verticalAlignment; @synthesize activeLink = _activeLink; -- (id)initWithFrame:(CGRect)frame { +- (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (!self) { return nil; @@ -251,7 +251,7 @@ static inline NSAttributedString * NSAttributedStringBySettingColorFromContext(N return self; } -- (id)initWithCoder:(NSCoder *)coder { +- (instancetype)initWithCoder:(NSCoder *)coder { self = [super initWithCoder:coder]; if (!self) { return nil; diff --git a/Classes/BITBlurImageAnnotation.m b/Classes/BITBlurImageAnnotation.m index 0e1eda8dd8..356b05b39b 100644 --- a/Classes/BITBlurImageAnnotation.m +++ b/Classes/BITBlurImageAnnotation.m @@ -39,7 +39,7 @@ @implementation BITBlurImageAnnotation -- (id)initWithFrame:(CGRect)frame { +- (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.clipsToBounds = YES; diff --git a/Classes/BITCrashAttachment.m b/Classes/BITCrashAttachment.m index a4f2b17b73..eca2946c09 100644 --- a/Classes/BITCrashAttachment.m +++ b/Classes/BITCrashAttachment.m @@ -52,7 +52,7 @@ [encoder encodeObject:self.contentType forKey:@"contentType"]; } -- (id)initWithCoder:(NSCoder *)decoder { +- (instancetype)initWithCoder:(NSCoder *)decoder { if ((self = [super init])) { _filename = [decoder decodeObjectForKey:@"filename"]; _crashAttachmentData = [decoder decodeObjectForKey:@"data"]; diff --git a/Classes/BITCrashManager.m b/Classes/BITCrashManager.m index a9500ecf32..e8f0c5b7c7 100644 --- a/Classes/BITCrashManager.m +++ b/Classes/BITCrashManager.m @@ -124,7 +124,7 @@ static PLCrashReporterCallbacks plCrashCallbacks = { } -- (id)init { +- (instancetype)init { if ((self = [super init])) { _delegate = nil; _showAlwaysButton = YES; diff --git a/Classes/BITFeedbackActivity.m b/Classes/BITFeedbackActivity.m index 814dc0c63f..a5876801a5 100644 --- a/Classes/BITFeedbackActivity.m +++ b/Classes/BITFeedbackActivity.m @@ -54,7 +54,7 @@ #pragma mark - NSObject -- (id)init { +- (instancetype)init { if ((self = [super init])) { _customActivityImage = nil; _customActivityTitle = nil; diff --git a/Classes/BITFeedbackComposeViewController.m b/Classes/BITFeedbackComposeViewController.m index a5d61e2534..9314cb0546 100644 --- a/Classes/BITFeedbackComposeViewController.m +++ b/Classes/BITFeedbackComposeViewController.m @@ -76,7 +76,7 @@ #pragma mark - NSObject -- (id)init { +- (instancetype)init { self = [super init]; if (self) { self.title = BITHockeyLocalizedString(@"HockeyFeedbackComposeTitle"); diff --git a/Classes/BITFeedbackListViewCell.m b/Classes/BITFeedbackListViewCell.m index 367721ac39..9b0c1de184 100644 --- a/Classes/BITFeedbackListViewCell.m +++ b/Classes/BITFeedbackListViewCell.m @@ -76,7 +76,7 @@ @implementation BITFeedbackListViewCell -- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { +- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { // Initialization code diff --git a/Classes/BITFeedbackManager.m b/Classes/BITFeedbackManager.m index 3357f92f19..03b9b3260c 100644 --- a/Classes/BITFeedbackManager.m +++ b/Classes/BITFeedbackManager.m @@ -77,7 +77,7 @@ #pragma mark - Initialization -- (id)init { +- (instancetype)init { if ((self = [super init])) { _currentFeedbackListViewController = nil; _currentFeedbackComposeViewController = nil; diff --git a/Classes/BITFeedbackUserDataViewController.m b/Classes/BITFeedbackUserDataViewController.m index 2f6fed7696..50d0536d52 100644 --- a/Classes/BITFeedbackUserDataViewController.m +++ b/Classes/BITFeedbackUserDataViewController.m @@ -51,7 +51,7 @@ @implementation BITFeedbackUserDataViewController -- (id)initWithStyle:(UITableViewStyle)style { +- (instancetype)initWithStyle:(UITableViewStyle)style { self = [super initWithStyle:style]; if (self) { self.title = BITHockeyLocalizedString(@"HockeyFeedbackUserDataTitle"); diff --git a/Classes/BITHockeyBaseManager.m b/Classes/BITHockeyBaseManager.m index a81f9cc373..1f21ff6997 100644 --- a/Classes/BITHockeyBaseManager.m +++ b/Classes/BITHockeyBaseManager.m @@ -54,7 +54,7 @@ } -- (id)init { +- (instancetype)init { if ((self = [super init])) { _serverURL = BITHOCKEYSDK_URL; @@ -75,7 +75,7 @@ return self; } -- (id)initWithAppIdentifier:(NSString *)appIdentifier isAppStoreEnvironment:(BOOL)isAppStoreEnvironment { +- (instancetype)initWithAppIdentifier:(NSString *)appIdentifier isAppStoreEnvironment:(BOOL)isAppStoreEnvironment { if ((self = [self init])) { _appIdentifier = appIdentifier; _isAppStoreEnvironment = isAppStoreEnvironment; diff --git a/Classes/BITHockeyBaseManagerPrivate.h b/Classes/BITHockeyBaseManagerPrivate.h index 938d55e0a6..2114d2228a 100644 --- a/Classes/BITHockeyBaseManagerPrivate.h +++ b/Classes/BITHockeyBaseManagerPrivate.h @@ -36,7 +36,7 @@ @property (nonatomic, strong) NSString *appIdentifier; -- (id)initWithAppIdentifier:(NSString *)appIdentifier isAppStoreEnvironment:(BOOL)isAppStoreEnvironment; +- (instancetype)initWithAppIdentifier:(NSString *)appIdentifier isAppStoreEnvironment:(BOOL)isAppStoreEnvironment; - (void)startManager; diff --git a/Classes/BITRectangleImageAnnotation.m b/Classes/BITRectangleImageAnnotation.m index fd3ddc8c99..60e123095b 100644 --- a/Classes/BITRectangleImageAnnotation.m +++ b/Classes/BITRectangleImageAnnotation.m @@ -38,7 +38,7 @@ @implementation BITRectangleImageAnnotation -- (id)initWithFrame:(CGRect)frame { +- (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.shapeLayer = [CAShapeLayer layer]; diff --git a/Classes/BITStoreButton.h b/Classes/BITStoreButton.h index 207b109b62..4368ca0009 100644 --- a/Classes/BITStoreButton.h +++ b/Classes/BITStoreButton.h @@ -71,8 +71,8 @@ typedef NS_ENUM(NSUInteger, BITStoreButtonStyle) { // The interface is flexible, so there is now fixed order @interface BITStoreButton : UIButton -- (id)initWithFrame:(CGRect)frame; -- (id)initWithPadding:(CGPoint)padding style:(BITStoreButtonStyle)style; +- (instancetype)initWithFrame:(CGRect)frame; +- (instancetype)initWithPadding:(CGPoint)padding style:(BITStoreButtonStyle)style; // action delegate @property (nonatomic, weak) id buttonDelegate; diff --git a/Classes/BITStoreButton.m b/Classes/BITStoreButton.m index cf4f0be388..d48d2b22c4 100644 --- a/Classes/BITStoreButton.m +++ b/Classes/BITStoreButton.m @@ -43,7 +43,7 @@ #pragma mark - NSObject -- (id)initWithLabel:(NSString*)aLabel enabled:(BOOL)flag { +- (instancetype)initWithLabel:(NSString*)aLabel enabled:(BOOL)flag { if ((self = [super init])) { self.label = aLabel; self.enabled = flag; @@ -152,7 +152,7 @@ #pragma mark - NSObject -- (id)initWithFrame:(CGRect)frame { +- (instancetype)initWithFrame:(CGRect)frame { if ((self = [super initWithFrame:frame])) { self.layer.needsDisplayOnBoundsChange = YES; @@ -167,7 +167,7 @@ return self; } -- (id)initWithPadding:(CGPoint)padding style:(BITStoreButtonStyle)style { +- (instancetype)initWithPadding:(CGPoint)padding style:(BITStoreButtonStyle)style { CGRect frame = CGRectMake(0, 0, 40, BIT_MIN_HEIGHT); if ((self = [self initWithFrame:frame])) { _customPadding = padding; diff --git a/Classes/BITStoreUpdateManager.m b/Classes/BITStoreUpdateManager.m index 78a0bcef1d..6b5711fa3e 100644 --- a/Classes/BITStoreUpdateManager.m +++ b/Classes/BITStoreUpdateManager.m @@ -106,7 +106,7 @@ #pragma mark - Init -- (id)init { +- (instancetype)init { if ((self = [super init])) { _checkInProgress = NO; _updateAvailable = NO; diff --git a/Classes/BITUpdateManager.m b/Classes/BITUpdateManager.m index 61d1b6b09d..40371ba109 100644 --- a/Classes/BITUpdateManager.m +++ b/Classes/BITUpdateManager.m @@ -386,7 +386,7 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) { #pragma mark - Init -- (id)init { +- (instancetype)init { if ((self = [super init])) { _delegate = nil; _expiryDate = nil; diff --git a/Classes/BITUpdateViewController.m b/Classes/BITUpdateViewController.m index 41633df0ef..28c99f6450 100644 --- a/Classes/BITUpdateViewController.m +++ b/Classes/BITUpdateViewController.m @@ -230,7 +230,7 @@ #pragma mark - Init -- (id)initWithStyle:(UITableViewStyle)style { +- (instancetype)initWithStyle:(UITableViewStyle)style { if ((self = [super initWithStyle:UITableViewStylePlain])) { _updateManager = [BITHockeyManager sharedHockeyManager].updateManager ; _isAppStoreEnvironment = [BITHockeyManager sharedHockeyManager].isAppStoreEnvironment; diff --git a/Classes/BITWebTableViewCell.m b/Classes/BITWebTableViewCell.m index 3435bb81b6..9a93b2100e 100644 --- a/Classes/BITWebTableViewCell.m +++ b/Classes/BITWebTableViewCell.m @@ -118,7 +118,7 @@ body { font: 13px 'Helvetica Neue', Helvetica; color:#626262; word-wrap:break-wo #pragma mark - NSObject -- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { +- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { if((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) { self.cellBackgroundColor = [UIColor clearColor]; } diff --git a/Support/HockeySDKTests/BITAuthenticatorTests.m b/Support/HockeySDKTests/BITAuthenticatorTests.m index 023d7302fd..a96f8fba3f 100644 --- a/Support/HockeySDKTests/BITAuthenticatorTests.m +++ b/Support/HockeySDKTests/BITAuthenticatorTests.m @@ -33,7 +33,7 @@ @end @implementation MyDeviceWithIdentifierForVendor -- (id)init { +- (instancetype)init { self = [super init]; if( self ) { _identifierForVendor = [NSUUID UUID];