|
|
@@ -22,6 +22,8 @@
|
|
|
@interface uploadImageOrVideoViewController ()<AJPhotoGroupViewProtocol,UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout,DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
|
|
|
{
|
|
|
couldPhoneBaseInfoModel *baseInfoModel;
|
|
|
+
|
|
|
+ BOOL isNotPhotoPermission;//没有权限
|
|
|
}
|
|
|
@property (strong, nonatomic) AJPhotoGroupView *photoGroupView;
|
|
|
@property (strong, nonatomic) UILabel *MytitleLabel;
|
|
|
@@ -491,6 +493,10 @@
|
|
|
- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView {
|
|
|
NSString *text = NSLocalizedString(@"common_no_data_tip",nil);
|
|
|
|
|
|
+ if(isNotPhotoPermission){
|
|
|
+ text = NSLocalizedString(@"enable_photo_permission_noData_tip",nil);
|
|
|
+ }
|
|
|
+
|
|
|
NSDictionary *attributes = @{NSFontAttributeName: [UIFont systemFontOfSize:16.0f],
|
|
|
NSForegroundColorAttributeName: HW999999Color};
|
|
|
|
|
|
@@ -803,7 +809,10 @@
|
|
|
#pragma mark 用户拒接授权相册
|
|
|
- (void)requestPhotoLibraryAccessWithAlert {
|
|
|
|
|
|
- KWeakSelf
|
|
|
+ isNotPhotoPermission = YES;
|
|
|
+ [self.photoListView reloadData];
|
|
|
+
|
|
|
+ //KWeakSelf
|
|
|
/*弹窗提示重启*/
|
|
|
ComontAlretViewController *nextVC = [[ComontAlretViewController alloc] initWithTiTle:NSLocalizedString(@"enable_photo_permission",nil)
|
|
|
msg:NSLocalizedString(@"enable_photo_permission_tip",nil)
|