gmoledina / GMGridView

A performant Grid-View for iOS (iPhone/iPad) that allows sorting of views with gestures (the user can move the items with his finger to sort them) and pinching/rotating/panning gestures allow the user to play with the view and toggle from the cellview to a fullsize display.
MIT License
2.3k stars 512 forks source link

can not see delete button on the top of each cell. #174

Open vanguard0808 opened 11 years ago

vanguard0808 commented 11 years ago

Hi, there

Have you ever complied the source code of GMGridView example project ? Even though it has a few lines of code wich allows users to see the delete button . But actually , it doesn't appear on the cell .

Here I attach the code , this is just same as example .

if (!cell)
{
    cell = [[GMGridViewCell alloc] init];
    cell.deleteButtonIcon = [UIImage imageNamed:@"close_x.png"];
    cell.deleteButtonOffset = CGPointMake(-15, -15);
     ...
}

Many thanks in advices.

AlexEdunov commented 11 years ago

In the file GMGridViewCell.m self.deleteButton.alpha = 0; Should be set to 1