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

Commit

Permalink
Merge pull request #151 from ParsePlatform/nlutsenko.xcode7
Browse files Browse the repository at this point in the history
Fix all warnings when compiling with Xcode 7.
  • Loading branch information
nlutsenko committed Sep 10, 2015
2 parents 3471920 + dcc8242 commit cfb0b52
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
15 changes: 15 additions & 0 deletions ParseUI/Classes/Internal/Views/Buttons/PFActionButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,24 @@ @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

#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];
Expand Down Expand Up @@ -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];
Expand Down
11 changes: 11 additions & 0 deletions ParseUI/Classes/Internal/Views/Buttons/PFPrimaryButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,24 @@ @interface PFPrimaryButton ()
UIActivityIndicatorView *_activityIndicatorView;
}

- (instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;

@end

@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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ - (void)viewWillAppear:(BOOL)animated {
}
}

- (NSUInteger)supportedInterfaceOrientations {
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return UIInterfaceOrientationMaskAll;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cfb0b52

Please sign in to comment.