In a Tab Bar based app a controller release data of the other ! !

Posted by Flodev03 on Stack Overflow See other posts from Stack Overflow or by Flodev03
Published on 2010-03-21T22:37:24Z Indexed on 2010/03/21 22:41 UTC
Read the original article Hit count: 229

Filed under:
|
|
|

Hi all !

I've made a ViewBased app, in the app delegate i've set a UITabBarCotntroller, in the app i have different view Controller two of them displays text in a UITextView and labels, the other one is my "ShakeController" a UIViewController in which i've set a UIAcelerometerDelegate, in it i create a instance of UIAccelerometer, in the method which manages the shake everything works fine, in this controller i have also set a UIImageView to make a simple animation, in the view Did Load method i set my imageView.animation to an array of UIImage.

My problem is : when the app is launched i use the ViewControllers and everything work fine, but when i tap the ShakeController item in the tab bar and then when i come back to the other controllers the label looks like : label and textView like : Lorem ipsum..... the text of UItextView in IB.

I have noticed thaht if i comment the initialisation of my imageView to the array of image i can navigate the items (from a view controller to another) without the label change and stay what i want them to be.

Notice that the two controllers are in a UINavigationController.

(i use @proprety (nonnatomic, retain) then @synthesize ... then releqse in the dealloc for the labels textview and my uiimageView)

Do not know what to do thanks to all

© Stack Overflow or respective owner

Related posts about tab

Related posts about bar