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

Commit

Permalink
#13 Fixed crash on launch due to missing images
Browse files Browse the repository at this point in the history
  • Loading branch information
swisspol committed Apr 5, 2014
1 parent 0bef136 commit 3fd5762
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/LibraryViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ - (id) initWithWindow:(UIWindow*)window {
if ((self = [super init])) {
_window = window;

_collectionImage = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Collection" ofType:@"png"]];
_comicImage = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Comic-Background" ofType:@"png"]];
CHECK(_comicImage);
_collectionImage = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Collection-Background" ofType:@"png"]];
CHECK(_collectionImage);
_newImage = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"New" ofType:@"png"]];
CHECK(_newImage);
_ribbonImage = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Ribbon" ofType:@"png"]];
CHECK(_ribbonImage);
_comicImage = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Comic" ofType:@"png"]];
CHECK(_comicImage);

DatabaseSQLRowID collectionID = [[NSUserDefaults standardUserDefaults] integerForKey:kDefaultKey_CurrentCollection];
if (collectionID) {
Expand Down

0 comments on commit 3fd5762

Please sign in to comment.