uitableview - iOS - NSNotifiction invalid selector -


i'm having trouble understanding why happening reason when nsnotification gets triggered second time happens:

-[uitableviewcel lcontentview imagefound:]: unrecognized selector sent instance 0x1cd837e0 2013-08-12 16:32:24.340 poundtaxi[7483:907] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[uitableviewcellcontentview imagefound:]: unrecognized selector sent instance 0x1cd837e0' 

* first throw call stack: (0x344d92a3 0x3c17e97f 0x344dce07 0x344db531 0x34432f68 0x3442a037 0x34d40599 0xd7d9f 0x33d64145 0x3c59611f 0x3c5954b7 0x3c596dcb 0x344acf3b 0x3441febd 0x3441fd49 0x37fe32eb 0x36335301 0xb963d 0x3c5b5b20) libc++abi.dylib: terminate called throwing exception

here block of code gets executed:

-(void)imagefound:(nsnotification *)anotification {     nsdictionary* userinfo = [anotification userinfo];     picture *apicture = (picture *) [userinfo objectforkey:@"picture"];     uiimage *image = (uiimage *) [userinfo objectforkey:@"image"];      apicture.highrespicture = image;     self.count++;  } 

it registered observer object released before being removed observer. remember remove notification center observers in dealloc.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -