I read a book on Objective-C and made a couple of simple applications, but still can't figure out how to do some easy things. For example, there are ten names of books and ten covers to them.I want make appear one random book name on the screen with it's cover. I can write something like this:
NSArray* bookNames = @[@"Harry Potter", @"Atlas Shrugged", @"The Financier"];
NSString* book= bookNames[arc4random()%bookNames.count];
Is it right? How can I load an image of cover to UIImageView depending on book name?