iPhone UITableViewCell: repositioning the textLabel

Posted by user359784 on Stack Overflow See other posts from Stack Overflow or by user359784
Published on 2010-06-06T16:52:29Z Indexed on 2010/06/06 17:02 UTC
Read the original article Hit count: 310

Filed under:
|

Hello,

I am new to iPhone development and I am currently working on a simple RSS reader app. The problem I am having is that I need to reposition the textLabel inside the UITableViewCells. I have tried setFrame or setCenter but it doesn't do anything. Does anyone know what I need to do inside the tableView:cellForRowAtIndexPath: method to reposition the textLabel at the top of the cell (x = 0, y = 0)?

Thank you

PS: The UITableViewCell is referenced by a variable called cell. I have tried [cell setFrame:CGRectMake(0, 0, 320, 20)] with no success.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableviewcell