Tableview reload data problem iphone sdk

Posted by neha on Stack Overflow See other posts from Stack Overflow or by neha
Published on 2010-06-16T12:32:33Z Indexed on 2010/06/16 12:32 UTC
Read the original article Hit count: 1023

Filed under:
|
|

Hi all,

I have a class A which is a subclass of uitableviewcontroller and one more class B which actually displays my tableview with its content is a subclass of A.

There's an xml parser which parses my xml and stores the content in an nsmutablearray of application delegate. Now, I fetch this delegate array into a local nsmutablearray in class B to minimise the communication between the two classes i.e. delegate and class B and display that.

After certain condition is met in class A, I'm calling xml parser to refill the delegate array and I'm calling class B's tableview reload method. The problem is when I call the tableview's reload data, class B's delegate methods are called. But before that I need to grab this delegate array in local array in class B. How shall I do that?

Can anybody please help?

Thanx in advance.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview