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

Fix ObjC ParseUIDemo for iOS 9. #150

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
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ @implementation DeletionCollectionViewController
- (instancetype)initWithClassName:(NSString *)className {
self = [super initWithClassName:className];
if (self) {
self.title = @"Deletion Table";
self.title = @"Deletion Collection";
self.pullToRefreshEnabled = YES;
self.objectsPerPage = 10;
self.paginationEnabled = YES;
Expand Down
84 changes: 46 additions & 38 deletions ParseUIDemo/Classes/PFUIDemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,50 +97,58 @@ - (instancetype)initWithStyle:(UITableViewStyle)style {
}

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (!self) return nil;

self.title = @"ParseUI Demo";
_descriptions = @[ @"Simple Table",
@"Paginated Table",
@"Sectioned Table",
@"Simple Storyboard Table",
@"Deletion Table",
@"Simple Collection",
@"Paginated Collection",
@"Sectioned Collection",
@"Simple Storyboard Collection",
@"Deletion Collection",
@"Log In Default",
@"Log In Username and Password",
@"Log In Password Forgotten",
@"Log In Done Button",
@"Log In Email as Username",
@"Log In Facebook",
@"Log In Facebook and Twitter",
@"Log In All",
@"Log In All as Navigation",
@"Log In Customized Background",
@"Sign Up Default",
@"Sign Up Username and Password",
@"Sign Up Email",
@"Sign Up Email And SignUp",
@"Sign Up All",
@"Sign Up Email as Username",
@"Sign Up Minimum Password Length",
@"Remote Image Table Default Style",
@"Remote Image Table Subtitle Style",
@"Remote Image Collection",
@"Purchase",
@"Custom Purchase" ];

return self;
return [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
}

- (instancetype)initWithCoder:(NSCoder *)decoder {
return [self init];
}

#pragma mark -
#pragma mark View

- (void)viewDidLoad {
[super viewDidLoad];

if (!self.title) {
self.title = @"ParseUI Demo";
}
if (!_descriptions) {
_descriptions = @[ @"Simple Table",
@"Paginated Table",
@"Sectioned Table",
@"Simple Storyboard Table",
@"Deletion Table",
@"Simple Collection",
@"Paginated Collection",
@"Sectioned Collection",
@"Simple Storyboard Collection",
@"Deletion Collection",
@"Log In Default",
@"Log In Username and Password",
@"Log In Password Forgotten",
@"Log In Done Button",
@"Log In Email as Username",
@"Log In Facebook",
@"Log In Facebook and Twitter",
@"Log In All",
@"Log In All as Navigation",
@"Log In Customized Background",
@"Sign Up Default",
@"Sign Up Username and Password",
@"Sign Up Email",
@"Sign Up Email And SignUp",
@"Sign Up All",
@"Sign Up Email as Username",
@"Sign Up Minimum Password Length",
@"Remote Image Table Default Style",
@"Remote Image Table Subtitle Style",
@"Remote Image Collection",
@"Purchase",
@"Custom Purchase" ];
}
}

#pragma mark -
#pragma mark UITableViewDataSource

Expand Down