A Simple Music App Starter
This starter has a featured page, music list, album details, and music player. You can swipe the cover art in the music player to change tracks, scrub through the playhead, and the typical play pause skip functions. The starter itself pulls from the iTunes API, you will need to load in your own data.
- Create a blank project.
- Replace contents inside the 'www' folder with the files downloaded from this starter.
This starter does not play audio in the background on the device, you can add this bit of code in your AppDelegate.m file to do so:
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
NSError *setCategoryError = nil;
ok = [audioSession setCategory:AVAudioSessionCategoryPlayback error:&setCategoryError];
Add the above code after:
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions