xcode - Weird image view error -


i have created subclass of uiview , in init method have code creates error

_blackbackground = [[uiview alloc] initwithframe:self.frame];     _blackbackground.backgroundcolor = [uicolor blackcolor];     [_blackbackground setalpha:0];     [self addsubview:_blackbackground];  nslog(@"1");     _window = [[uiimageview alloc] initwithframe:cgrectmake(512 - 250, 768 + 50, 500, 650)]; // below screen 50px     nslog(@"2");     [_window setimage:[uiimage imagenamed:@"buy window background.png"]];     nslog(@"3");     [self addsubview:_window]; //error on line     nslog(@"4"); 

the error says:

* terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[uiimageview _subtreemonitorsforview:]: unrecognized selector sent instance 0x7db5f60'

ive checked image title name correct


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -