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

Fix all warnings when compiling with Xcode 7. #151

Merged
merged 1 commit into from
Sep 10, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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