mardi 4 août 2015

Why label shows previous value and current values in uitableview?

enter image description here

my code:

     -(void)btn_up_arrow:(UIButton*)click
{

    int tagvalue=[[arr_count objectAtIndex:click.tag] intValue];

    tagvalue++;
    [arr_count replaceObjectAtIndex:click.tag withObject:[NSString stringWithFormat:@"%d",tagvalue]];
       NSLog(@"increment %@",arr_count);
if(tagvalue >=5)

{


    tagvalue--;
    [arr_count replaceObjectAtIndex:click.tag withObject:[NSString stringWithFormat:@"%d",tagvalue]];
}
    label1.text=[NSString stringWithFormat:@"%d",tagvalue];

    [self.mTableView reloadInputViews];

}

i cant reload the cell in the out of tableview method. tqtableview i am used, please help me to find this problem.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire