Creating a fixed formatted cell in UITableview?

You can layout a custom UITableViewCell in Interface Builder, where you drag two UILabel views onto the Content View and set their size appropriately (Notice that the letters may vary in width, so even though you know it's 10 chars in length, you don't know the maximum width, please keep that in mind) Then you just fill the open space at the right of a cell with another UILabel layout it to cover the open space and set it to autoresize it's width and set the right margin to be fixed There are quite a few tutorials available on how to use the custom cell in your tableView, I can recommend you this screencast It explains how you can initialize the custom cell and how you can access the custom labels.

You can layout a custom UITableViewCell in Interface Builder, where you drag two UILabel views onto the Content View and set their size appropriately (Notice that the letters may vary in width, so even though you know it's 10 chars in length, you don't know the maximum width, please keep that in mind) Then you just fill the open space at the right of a cell with another UILabel, layout it to cover the open space and set it to autoresize it's width and set the right margin to be fixed. There are quite a few tutorials available on how to use the custom cell in your tableView, I can recommend you this screencast. It explains how you can initialize the custom cell and how you can access the custom labels.

I noticed that the tutorial is pre-SDK 3.0. Is it still relevant or has it been deprecated? I am starting to look out for this.

If it is still valid, I have no problem with drawing my own cell. And thx for your other answer as well. – Wes Jan 1 '10 at 15:56 You can safely use it under 3.0, it's done the same way.

– Joost Jan 1 '10 at 18:59.

It sounds like you want something like an old-fashion text display in which then nth character in row zero always lines up the nth character in every row. Even using carefully positioned labels in a custom tableviewcell, you will have to strictly control the specific font and its size if you want all the characters to line up in fixed width column. You will need a fixed width font to begin with and you will have to set the size precisely.

You might want to consider whether this is necessary. IPhone users are used to propionate width text displays. Very precise columns of text might make it difficult to discern rows.

I would test first with just a simple table before spending the time tweaking the columns.

Even using carefully positioned labels in a custom tableviewcell, you will have to strictly control the specific font and its size if you want all the characters to line up in fixed width column. You will need a fixed width font to begin with and you will have to set the size precisely. You might want to consider whether this is necessary.

IPhone users are used to propionate width text displays.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions