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

Commit

Permalink
Fixed warnings surfaced in Xcode 6.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlutsenko committed Feb 17, 2015
1 parent 54e403a commit 40c8509
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@
#import "PFLoadingView.h"
#import "PFTableViewCell.h"

// Add headers to kill any warnings.
// `initWithStyle:` is a UITableViewController method.
// `initWithCoder:`/`initWithNibName:bundle:` are UIViewController methods and are, for sure, available.
@interface UITableViewController ()

- (instancetype)initWithStyle:(UITableViewStyle)style NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithCoder:(NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil NS_DESIGNATED_INITIALIZER;

@end

@interface PFQueryTableViewController () {
NSMutableArray *_mutableObjects;

Expand Down
4 changes: 4 additions & 0 deletions ParseUIDemo/Classes/PFUIDemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ - (instancetype)init {
return self;
}

- (instancetype)initWithStyle:(UITableViewStyle)style {
return [self init];
}

#pragma mark -
#pragma mark UITableViewDataSource

Expand Down

0 comments on commit 40c8509

Please sign in to comment.