Is there a portable OpenGL UI Library (Buttons, Lists, Windows, Dropdown etc)?
I have a tableviewcontroller where I populate some data from a sqlite db and for each row, I download a file from a http server and cache it locally. I cache it only when the "detailsview" is opened. And the detailsview responds back to this table through a delegate after the file download is complete.
But, when this tableview itself is popped out of the navicontroller., the call to delegate fails with a EXEC_BAD_ACCESS
I called [_delegate retain] in the setDelegate of the details view and everything works fine, but I'm not sure whether this will leak memory...
Could anyone advise?
1:Downloading images from a server iPhone SDKFitting a UIDatePicker into a UIActionSheetTransitions and setting up Layers/Scenes in cocos2d iPhone
2:Polyphonic sound playback
Generally, delegates are not retained to avoid retain cycles. If the delegate may be released before you, then it is the responsibility of the delegate to clear your reference before it is finished being deallocated (eg in its dealloc).. However, if any property is set to "retain" or "copy", then you would retain/copy it in the setter (or use @synthesized setters which will did it for you), and release it in dealloc to avoid leaking. As said above though, this may lead to a retain cycle so this neither object ever receive s deallocated.. I would suggest you turn on any memory debugging with environment variables NSZombieEnabled and NSAutoreleaseFreedObjectCheckEnabled and see if it tells you which object is being over released..