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

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
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

macrumors 65816
Sep 20, 2002
1,193
814
This problem sounds very familiar. I think someone has asked it before.

You could always just reload the content...
 

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
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)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.