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

Commit 3fd5762

Browse files
committed
#13 Fixed crash on launch due to missing images
1 parent 0bef136 commit 3fd5762

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Classes/LibraryViewController.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,14 @@ - (id) initWithWindow:(UIWindow*)window {
196196
if ((self = [super init])) {
197197
_window = window;
198198

199-
_collectionImage = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Collection" ofType:@"png"]];
199+
_comicImage = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Comic-Background" ofType:@"png"]];
200+
CHECK(_comicImage);
201+
_collectionImage = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Collection-Background" ofType:@"png"]];
200202
CHECK(_collectionImage);
201203
_newImage = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"New" ofType:@"png"]];
202204
CHECK(_newImage);
203205
_ribbonImage = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Ribbon" ofType:@"png"]];
204206
CHECK(_ribbonImage);
205-
_comicImage = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Comic" ofType:@"png"]];
206-
CHECK(_comicImage);
207207

208208
DatabaseSQLRowID collectionID = [[NSUserDefaults standardUserDefaults] integerForKey:kDefaultKey_CurrentCollection];
209209
if (collectionID) {

0 commit comments

Comments
 (0)