天天看点

iOS开发-UI控件:CollectionView 获取指定位置的cell

- (void)getApprovalUnreadCount: (id)sender

{

    NSIndexPath *path=[NSIndexPathindexPathForRow:0inSection:0];

    self.approvalCell = (HomeCollectionViewCell *)[_myCollectionViewcellForItemAtIndexPath:path];

    [self.approvalCell.badgeBtnsetTitle:@"12"forState:UIControlStateNormal];

    self.approvalCell.badgeBtn.hidden = NO;

}