ios - Unrecognized selector setting alpha for a UIImageView -


i'm getting unrecognized selector exception trying set alpha on uiimageview, don't understand why should seeing uiimageview inherits uiview , alpha property of that.

@property (strong, nonatomic) iboutlet uiimageview              *pulldowntab;  ... self.pulldowntab.alpha = 1.0;   2013-05-21 07:33:32.964 testcontrol[655:907] -[__nscfnumber setalpha:]: unrecognized selector sent instance 0x1e587fa0 

** update ** moral of story - solved. careful key value coding, call function being made earlier

- (void) fadetoalphavalue: (double) alpha forkeypath: (nsstring*) keypath {     nsnumber* number = [nsnumber numberwithdouble:alpha];      [uiview animatewithduration:kfadeanimationduration                      animations:^ {                         [self setvalue:number forkeypath:keypath];                      }]; }      [self fadetoalphavalue:0.0 forkeypath:@"self.pulldowntab"]; 

are sure assigning iboutlet in interface builder?

the reference not working, when access self.pulldowntab accessing nscfnumber variable in memory.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -