ios - Default to songs tab when presenting MPMediaPickerController -


when present mpmediapickercontroller in ios7, default tab playlists tab.
how change default tab songs tab?
have searched everywhere , cannot find solution, know possible because see other apps have done this.

here how i'm presenting media picker controller:

- (void)showpicker {     mpmediapickercontroller *mediapicker = [[mpmediapickercontroller alloc] initwithmediatypes:mpmediatypeanyaudio];     mediapicker.delegate = self;     mediapicker.prompt = @"select song";     [mediapicker setallowspickingmultipleitems:yes];     [mediapicker setshowsclouditems:yes];     [self presentviewcontroller:mediapicker animated:yes completion:nil];  } 

you can not change default tab of mpmediapickercontroller, prior ios 7 defaults tab of mpmediapickercontroller songs tab, in ios 7 have changed playlist tab! applications might have seen have been running on ios 6 or less.

for more info can check apple's documentation doesn't mention this.

sorry, it's not regular uitabbarcontroller.

it's guess can try following, might work changing init media type mpmediatypemusic!

mpmediapickercontroller *picker = [[mpmediapickercontroller alloc] initwithmediatypes: mpmediatypemusic]; 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -