豆瓣相冊精選集
作者:佚名
豆瓣相冊精選集的源碼,來自Tonny&Sunm,可以參考,修改后使用,但界面不得隨便使用。
源碼簡介
豆瓣相冊精選集的源碼,來自Tonny&Sunm,可以參考,修改后使用,但界面不得隨便使用。
源碼運(yùn)行截圖
源碼片段:
- - (IBAction)showPhotosInAlbum:(UISwipeGestureRecognizer *)gesture {
- if (IsShowingCategory) return;
- CGPoint point = [gesture locationInView:_tableView];
- NSIndexPath *selectedIndexPath = [_tableView indexPathForRowAtPoint:point];
- if (!selectedIndexPath) return;
- NSUInteger row = selectedIndexPath.row;
- [self hidePaperIndicator];
- DAPhotoWallViewController *vc = (DAPhotoWallViewController *)[self.storyboard instantiateViewControllerWithIdentifier:@"DAPhotoWallViewController"];
- NSDictionary *dic = _dataSource[@"albums"][row];
- vc.albumDic = dic;
- NSArray *doubanCategory = [_appData valueForKeyPath:@"cg_all"];
- vc.canNotGotoUserAlbum = (_seletedCategory == doubanCategory.count);
- CGFloat offset = [_tableView rectForRowAtIndexPath:selectedIndexPath].origin.y-[_tableView contentOffset].y;
- vc.paperIndicatorOffset = offset;
- _lastSelectedRow = row;
- ////
- UITableViewCell *cell = [_tableView cellForRowAtIndexPath:selectedIndexPath];
- UIView *view = [cell.contentView viewWithTag:4];
- [UIView animateWithDuration:0.3
- animations:^{
- view.alpha = 1;
- }completion:^(BOOL finished) {
- [self.navigationController pushViewController:vc animated:YES];
- }];
- }
責(zé)任編輯:chenqingxiang
來源:
網(wǎng)絡(luò)整理