Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit dcc8242

Browse files
committed
Fix all warning on Xcode 7.
1 parent 31dd837 commit dcc8242

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

ParseUI/Classes/Internal/Views/Buttons/PFActionButton.m

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,24 @@ @interface PFActionButton ()
3333

3434
@property (nonatomic, strong) PFActionButtonConfiguration *configuration;
3535

36+
- (instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
37+
- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
38+
3639
@end
3740

3841
@implementation PFActionButton
3942

4043
#pragma mark -
4144
#pragma mark Init
4245

46+
- (instancetype)initWithFrame:(CGRect)frame {
47+
return [super initWithFrame:frame];
48+
}
49+
50+
- (instancetype)initWithCoder:(nonnull NSCoder *)decoder {
51+
return [super initWithCoder:decoder];
52+
}
53+
4354
- (instancetype)initWithConfiguration:(PFActionButtonConfiguration *)configuration
4455
buttonStyle:(PFActionButtonStyle)buttonStyle {
4556
self = [super initWithFrame:CGRectZero];
@@ -159,6 +170,10 @@ @implementation PFActionButtonConfiguration
159170
#pragma mark -
160171
#pragma mark Init
161172

173+
- (instancetype)init {
174+
return [self initWithBackgroundImageColor:nil image:nil];
175+
}
176+
162177
- (instancetype)initWithBackgroundImageColor:(UIColor *)backgroundImageColor
163178
image:(UIImage *)image {
164179
self = [super init];

ParseUI/Classes/Internal/Views/Buttons/PFPrimaryButton.m

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,24 @@ @interface PFPrimaryButton ()
2929
UIActivityIndicatorView *_activityIndicatorView;
3030
}
3131

32+
- (instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
33+
- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
34+
3235
@end
3336

3437
@implementation PFPrimaryButton
3538

3639
#pragma mark -
3740
#pragma mark Init
3841

42+
- (instancetype)initWithFrame:(CGRect)frame {
43+
return [super initWithFrame:frame];
44+
}
45+
46+
- (instancetype)initWithCoder:(nonnull NSCoder *)decoder {
47+
return [super initWithCoder:decoder];
48+
}
49+
3950
- (instancetype)initWithBackgroundImageColor:(UIColor *)color {
4051
self = [super initWithFrame:CGRectZero];
4152
if (!self) return nil;

ParseUI/Classes/LogInViewController/PFLogInViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ - (void)viewWillAppear:(BOOL)animated {
146146
}
147147
}
148148

149-
- (NSUInteger)supportedInterfaceOrientations {
149+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
150150
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
151151
return UIInterfaceOrientationMaskAll;
152152
}

ParseUI/Classes/QueryCollectionViewController/PFQueryCollectionViewController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ - (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibB
8080
return self;
8181
}
8282

83+
- (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout {
84+
return[self initWithCollectionViewLayout:layout className:nil];
85+
}
86+
8387
- (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout className:(NSString *)className {
8488
self = [super initWithCollectionViewLayout:layout];
8589
if (!self) return nil;

ParseUI/Classes/SignUpViewController/PFSignUpViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ - (void)viewWillAppear:(BOOL)animated {
130130
#pragma mark -
131131
#pragma mark Rotation
132132

133-
- (NSUInteger)supportedInterfaceOrientations {
133+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
134134
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
135135
return UIInterfaceOrientationMaskAll;
136136
}

0 commit comments

Comments
 (0)