diff --git a/ParseUI/Classes/Internal/Views/Buttons/PFActionButton.m b/ParseUI/Classes/Internal/Views/Buttons/PFActionButton.m index 6f04429..f741d35 100644 --- a/ParseUI/Classes/Internal/Views/Buttons/PFActionButton.m +++ b/ParseUI/Classes/Internal/Views/Buttons/PFActionButton.m @@ -33,6 +33,9 @@ @interface PFActionButton () @property (nonatomic, strong) PFActionButtonConfiguration *configuration; +- (instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER; +- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER; + @end @implementation PFActionButton @@ -40,6 +43,14 @@ @implementation PFActionButton #pragma mark - #pragma mark Init +- (instancetype)initWithFrame:(CGRect)frame { + return [super initWithFrame:frame]; +} + +- (instancetype)initWithCoder:(nonnull NSCoder *)decoder { + return [super initWithCoder:decoder]; +} + - (instancetype)initWithConfiguration:(PFActionButtonConfiguration *)configuration buttonStyle:(PFActionButtonStyle)buttonStyle { self = [super initWithFrame:CGRectZero]; @@ -159,6 +170,10 @@ @implementation PFActionButtonConfiguration #pragma mark - #pragma mark Init +- (instancetype)init { + return [self initWithBackgroundImageColor:nil image:nil]; +} + - (instancetype)initWithBackgroundImageColor:(UIColor *)backgroundImageColor image:(UIImage *)image { self = [super init]; diff --git a/ParseUI/Classes/Internal/Views/Buttons/PFPrimaryButton.m b/ParseUI/Classes/Internal/Views/Buttons/PFPrimaryButton.m index 037758b..5c5a076 100644 --- a/ParseUI/Classes/Internal/Views/Buttons/PFPrimaryButton.m +++ b/ParseUI/Classes/Internal/Views/Buttons/PFPrimaryButton.m @@ -29,6 +29,9 @@ @interface PFPrimaryButton () UIActivityIndicatorView *_activityIndicatorView; } +- (instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER; +- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER; + @end @implementation PFPrimaryButton @@ -36,6 +39,14 @@ @implementation PFPrimaryButton #pragma mark - #pragma mark Init +- (instancetype)initWithFrame:(CGRect)frame { + return [super initWithFrame:frame]; +} + +- (instancetype)initWithCoder:(nonnull NSCoder *)decoder { + return [super initWithCoder:decoder]; +} + - (instancetype)initWithBackgroundImageColor:(UIColor *)color { self = [super initWithFrame:CGRectZero]; if (!self) return nil; diff --git a/ParseUI/Classes/LogInViewController/PFLogInViewController.m b/ParseUI/Classes/LogInViewController/PFLogInViewController.m index 2543d65..a6dceae 100644 --- a/ParseUI/Classes/LogInViewController/PFLogInViewController.m +++ b/ParseUI/Classes/LogInViewController/PFLogInViewController.m @@ -146,7 +146,7 @@ - (void)viewWillAppear:(BOOL)animated { } } -- (NSUInteger)supportedInterfaceOrientations { +- (UIInterfaceOrientationMask)supportedInterfaceOrientations { if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { return UIInterfaceOrientationMaskAll; } diff --git a/ParseUI/Classes/QueryCollectionViewController/PFQueryCollectionViewController.m b/ParseUI/Classes/QueryCollectionViewController/PFQueryCollectionViewController.m index bef5421..af1a52a 100644 --- a/ParseUI/Classes/QueryCollectionViewController/PFQueryCollectionViewController.m +++ b/ParseUI/Classes/QueryCollectionViewController/PFQueryCollectionViewController.m @@ -80,6 +80,10 @@ - (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibB return self; } +- (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout { + return[self initWithCollectionViewLayout:layout className:nil]; +} + - (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout className:(NSString *)className { self = [super initWithCollectionViewLayout:layout]; if (!self) return nil; diff --git a/ParseUI/Classes/SignUpViewController/PFSignUpViewController.m b/ParseUI/Classes/SignUpViewController/PFSignUpViewController.m index 51461a1..257b5fb 100644 --- a/ParseUI/Classes/SignUpViewController/PFSignUpViewController.m +++ b/ParseUI/Classes/SignUpViewController/PFSignUpViewController.m @@ -130,7 +130,7 @@ - (void)viewWillAppear:(BOOL)animated { #pragma mark - #pragma mark Rotation -- (NSUInteger)supportedInterfaceOrientations { +- (UIInterfaceOrientationMask)supportedInterfaceOrientations { if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { return UIInterfaceOrientationMaskAll; }