PDA

View Full Version : Why contents going invisble?




sujithkrishnan
Sep 8, 2008, 01:51 AM
Hi all.

I am making use of a textView as a ContentView for my cells to show a set of details..

On viewWillAppear i am reloading the table, and setting the text for teh textViews..

It is doing perfectly when i swap between tabs (as the viewWillAppear: is calling)...

But the problem is that when i scroll down to the table and if i scroll up, the cell is becoming blank (textView's text is empty)..But i tried debugging, every thing is doing perfectly, but i am losing content in UI, in device also i noticed this fact..

I hope while i scroll also [myTable reloadData] is getting called automatically.. The problem is only when scroll is happening, if i swap between the tabs, everything will come perfectly...

Is it a bug????



DipDog3
Sep 8, 2008, 07:09 AM
This problem sounds very familiar. I think someone has asked it before.

You could always just reload the content...

sujithkrishnan
Sep 9, 2008, 12:47 AM
This problem sounds very familiar. I think someone has asked it before.

You could always just reload the content...

I am reloading at every viewWillAppear..
But the scroll-control is not in my hands...

I tries using re-usable cells..Then the problem is that the labels over the cells are going mis-aligned if i traverse to some other viewCOntroller and come s back...
But that prob get eliminated, whn i used "alloc/init"...

Is there any solution/alterantive to display a big string (30-50 letters) without using textView as the contentView. if i am using cell.text, this prob wont be there... But i cant display the entire string for cell.text ( i tried with different lineBreakMode) ..

How to break the cell.text into different lines, provided cell.height is sufficient enough to view the full string ??? ( WordWrap, charWrap.. nothing worked well)