1, PhotoBrowser 里面 的 单击 手势 有问题
#pragma mark - 手势处理
//单击隐藏
- (void)handleSingleTap:(UITapGestureRecognizer *)tap {
// 移除进度条
[_photoLoadingView removeFromSuperview];
// 通知代理
if ([self.photoViewDelegate respondsToSelector:@selector(photoViewSingleTap:)]) {
[self.photoViewDelegate photoViewSingleTap:self];
}
}
[self.photoViewDelegate respondsToSelector:@selector(photoViewSingleTap:)]
这个 方法 没有 执行
2、
点张 图片 ,左右滑动,进去 玩一下,没问题。
退出后,再 进入, 左右滑动,
GG
case 5:
case 6:
{
for (int i = 0; i<lifeDyModels.count; i++){
if (i>0){
if (photoArray[i].hidden) {
photoArray[i].hidden = NO;
}
}
photoWidthArray[i].constant = (kScreenWidth - 60)/3;
photoHeightArray[i].constant = (kScreenWidth - 60)/3;
[photoArray[i] sd_setImageWithURL: [NSURL URLWithString: lifeDyModels[i].Photos] placeholderImage: [UIImage imageNamed: @"loginZhe" ]];
ZheTapGesture * photoSixGesture = [[ZheTapGesture alloc ] init] ;
[photoArray[i] addGestureRecognizer: photoSixGesture ];
[photoSixGesture addTapActionwithRespond:^{
photoBrower.photos = photos;
photoBrower.currentPhotoIndex = photoSixGesture.view.tag - 10;
[photoBrower show ];
}];
}
for (NSInteger j = lifeDyModels.count; j<9; j++) {
photoArray[j].hidden = YES;
photoWidthArray[j].constant = 0;
photoHeightArray[j].constant = 0;
}
// [self layoutIfNeeded ];
companyFavoredModel.cellDyHeight = 300;
}
break;
#pragma mark - 5 6