@@ -6513,7 +6513,9 @@
#pragma mark - Banner Delegate
- (void)commonEditorBannerCell:(CommonEditorBannerCell *)cell didClickItemAtIndexPath:(NSIndexPath *)indexPath {
-
+ if ([[[cell content] objectForKey:@"count"] integerValue] == 0) {
+ return;
+ }
ContentPreviewController *preVC = [[UIStoryboard storyboardWithName:@"PhotoList" bundle:nil] instantiateViewControllerWithIdentifier:@"ContentPreviewController"];
preVC.content = [cell content];
@@ -1203,6 +1203,9 @@
return;
} else {
+ if ([[self.stack_contents objectForKey:@"count"] integerValue] == 0) {
preVC.content = self.stack_contents;
// preVC.currentIndex = index;
@@ -927,6 +927,9 @@ self.informationLabel.frame = CGRectMake(self.informationLabel.frame.origin.x, s
@@ -218,6 +218,9 @@
#pragma mark - CollectionView DataSource
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
+ if ([self.photos count] == 0) {
+ return 0;
return self.photos.count + 2;
}