Created
May 12, 2021 07:32
-
-
Save maor365scores/6bce4ee188410b4c35933e0b0ced654d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
else if([cell.contentCellType isEqualToString: NSStringFromClass([PreGameWinningProbabilityHeaderCell class])]) | |
{ | |
PreGameWinningProbabilityHeaderCell *preGameWinningProbability = (PreGameWinningProbabilityHeaderCell *)cell; | |
PreGameWinningProbabilityHeaderPanelView *preGameWinningProbabilityHeaderPanelView = (PreGameWinningProbabilityHeaderPanelView *)preGameWinningProbability.contentPanelView; | |
PreGameWinningProbabilityHeaderDataItem *dataItem = (PreGameWinningProbabilityHeaderDataItem *)preGameWinningProbability.dataItem; | |
PreGameWinningProbabilityHeaderPanelDataItem *panelItem = (PreGameWinningProbabilityHeaderPanelDataItem *)dataItem.panelDataItem; | |
BOOL isExtended = panelItem.isExtended; | |
if(isExtended) | |
{ | |
panelItem.isExtended = NO; | |
DashboardContentDataItem *expandedDataItem = [self.dataManager.contentData dataItemAtIndex:indexPath.row + 2]; | |
NSArray *indexPaths = [data removePreGameWinningProbabilityExpandedWithDataItem:expandedDataItem]; | |
[contentTableView deleteRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationTop]; | |
[preGameWinningProbabilityHeaderPanelView expandCollapse]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment