We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a23cde + 8c52eac commit 501e363Copy full SHA for 501e363
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
@@ -204,6 +204,10 @@ - (void)configCollectionView {
204
205
_collectionView.contentSize = CGSizeMake(self.view.tz_width, (([self getAllCellCount] + self.columnNumber - 1) / self.columnNumber) * self.view.tz_width);
206
if (_models.count == 0) {
207
+ if (_noDataLabel) {
208
+ [_noDataLabel removeFromSuperview];
209
+ _noDataLabel = nil;
210
+ }
211
_noDataLabel = [UILabel new];
212
_noDataLabel.textAlignment = NSTextAlignmentCenter;
213
_noDataLabel.text = [NSBundle tz_localizedStringForKey:@"No Photos or Videos"];
0 commit comments