vendredi 30 janvier 2015

subview/alertview not showing after uitableview scroll

The problem is that I have a button in customtableviewcell which is in the top of the uitableview. When I press the button alertview/subview is shown. But if I scroll down and back in tableview the button wont show anything. I guess that the alertview somehow goes under the other cells.


Here is the code that happens when user press the button:



- (IBAction)Button:(id)sender {
NSLog(@"lol");

if([_Something isEqual: @"1" ]){

RNBlurModalView *modal = [[RNBlurModalView alloc] initWithParentView:self title:@"" message:@""];
[modal show];
}


Also nslog logs "lol" when the button is pressed but the alertview is not showing up.


Help is more than appreciated!




Aucun commentaire:

Enregistrer un commentaire