Cocos2d: UIImageView will not remove itself from glView -


in application pushing new scene has 2 uiimageviews on it. in init method of new scene, uiimageviews allocated , added view using:

[[[ccdirector shareddirector] view] addsubview: _someuiimageview]; 

in dealloc method, removing layer delegate touchdispatcher , removing uiimageviews like:

[_someuiimageview removefromsuperview]; _someuiimageview = nil; 

however when pop scene, return scene want, still able interact uiimageviews scene before. have tried replacing scene instead of popping it, still there. using cocos2d 2.0 if makes difference.

thanks

@kreiri alright, maybe dealloc method not called when remove de scene,

review retains objects, maybe not released , cause dealloc method not called.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -