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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -