Commit 9f10491e authored by yuzheng's avatar yuzheng

优化一些细节

parent 5cb93b50
......@@ -37,7 +37,7 @@
// You can get the photos by block, the same as by delegate.
// 你可以通过block或者代理,来得到用户选择的照片.
[imagePickerVc setDidFinishPickingPhotosHandle:^(NSArray<UIImage *> *photos, NSArray *assets) {
[imagePickerVc setDidFinishPickingPhotosHandle:^(NSArray<UIImage *> *photos, NSArray *assets, BOOL isSelectOriginalPhoto) {
}];
[self presentViewController:imagePickerVc animated:YES completion:nil];
......
......@@ -56,7 +56,8 @@
/// 对照片排序,按修改时间升序,默认是YES。如果设置为NO,最新的照片会显示在最前面,内部的拍照按钮会排在第一个
@property (nonatomic, assign) BOOL sortAscendingByModificationDate;
/// The pixel width of output image, Default is 828px / 导出图片的宽度,默认828像素宽
/// The pixel width of output image, Default is 828px,you need to set photoPreviewMaxWidth at the same time
/// 导出图片的宽度,默认828像素宽,你需要同时设置photoPreviewMaxWidth的值
@property (nonatomic, assign) CGFloat photoWidth;
/// Default is 600px / 默认600像素宽
......
......@@ -727,8 +727,8 @@
[imagePickerVc showProgressHUD];
}
TZImagePickerController *imagePickerVc = (TZImagePickerController *)self.navigationController;
dispatch_async(dispatch_get_global_queue(0, 0), ^{
TZImagePickerController *imagePickerVc = (TZImagePickerController *)self.navigationController;
[[TZImageManager manager] getAllAlbums:imagePickerVc.allowPickingVideo allowPickingImage:imagePickerVc.allowPickingImage needFetchAssets:!self.isFirstAppear completion:^(NSArray<TZAlbumModel *> *models) {
dispatch_async(dispatch_get_main_queue(), ^{
self->_albumArr = [NSMutableArray arrayWithArray:models];
......
......@@ -273,7 +273,8 @@
imagePickerController.videoQuality = UIImagePickerControllerQualityTypeHigh;
}];
// imagePickerVc.photoWidth = 800;
// imagePickerVc.photoWidth = 1600;
// imagePickerVc.photoPreviewMaxWidth = 1600;
// 2. Set the appearance
// 2. 在这里设置imagePickerVc的外观
......@@ -380,6 +381,7 @@
}];
imagePickerVc.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:imagePickerVc animated:YES completion:nil];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment