SGMAlbumViewController* viewVC = [[SGMAlbumViewController alloc] init];
viewVC.assetsLibrary =assetLibrary;
viewVC.limitNum = 3;//限制选择张数,不设置即不限制
[viewVC doSelectedBlock:^(NSMutableArray *assetDicArray) { //包含 {@"asset":ALAsset,@"assetIndex":0,@"select":@YES}
[selectedPhotoArray addObjectsFromArray:assetDicArray];
[mainTable reloadData];
}];
UINavigationController* nav = [[UINavigationController alloc]initWithRootViewController:viewVC];
[self presentViewController:nav animated:YES completion:nil];
hzpqt / weixinphoto Goto Github PK
View Code? Open in Web Editor NEWThis project forked from hsjcom/weixinphoto
模仿微信朋友圈选择照片模块,适配手机和pad。