Why contents going invisble?

Discussion in 'iOS Programming' started by sujithkrishnan, Sep 7, 2008.

  1. sujithkrishnan macrumors 6502

    May 9, 2008
    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????
  2. DipDog3 macrumors 65816


    Sep 20, 2002
    This problem sounds very familiar. I think someone has asked it before.

    You could always just reload the content...
  3. sujithkrishnan thread starter macrumors 6502

    May 9, 2008
    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)

Share This Page