Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pravara15

macrumors newbie
Original poster
May 14, 2009
5
0
Hi there,

i have one Mutable array which contains objects of a class. When first time, view get loaded, data is displayed properly in table view.

after that, when i tried to change the contents based on the value in picker control, the contents of mutable array shows, "Invalid".

in the function "numberOfRowsInSection" of tableView, the contents of Mutable array are proper (what i want to display)

but after that as soon as control goes to "cellForRowAtIndexPath" function, contents gets corrupted.

Please let me know, how these two functions work?:confused:

Thanx in advance.:)


I have attached the code files, please find them.
 

Attachments

  • Cleaning(m file).txt
    19.8 KB · Views: 238
  • Cleaning (h file).txt
    1.6 KB · Views: 89
The usual cause of this is mistakes in memory management. If the array isn't retained correctly by the view controller then it won't be available in cellForRowAtIndexPath. How are you creating the array?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.