# AISLibrary4iOS **Repository Path**: jink2005/AISLibrary4iOS ## Basic Information - **Project Name**: AISLibrary4iOS - **Description**: 收集整理常用的iOS开源类库,方便使用。 - **Primary Language**: Objective-C - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-10-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #AISLibrary4iOS Open Source Site: http://git.oschina.net/jink2005/AISLibrary4iOS Copyright @jink2005 www.aiseminar.com ### AISMediaPickerViewController ![Grouping Type Screen](http://git.oschina.net/uploads/images/2015/1208/235605_18b63677_14590.png "Grouping Type") ![Song List Screen](http://git.oschina.net/uploads/images/2015/1208/235709_efee4697_14590.png "Song List") **Usage:** 1. Create and Show ``` AISMediaPickerViewController *mediaPicker = [[AISMediaPickerViewController alloc] init]; [mediaPicker setDelegate:self]; [mediaPicker setDismissAfterPick:YES]; [self presentViewController:mediaPicker animated:YES completion:^{ }]; // [mediaPicker setHiddenCancelButton:YES]; // [self.navigationController pushViewController:mediaPicker animated:YES]; ``` 2. Implement the delegate: ``` #pragma mark AISMediaPickerViewControllerDelegate - (void)mediaPicker:(AISMediaPickerViewController *)mediaPicker didPickMediaItems:(MPMediaItemCollection *)mediaItemCollection { } - (void)mediaPickerDidCancel:(AISMediaPickerViewController *)mediaPicker { } ```