In older versions of the SDK this was possible using the initWithFrame:reuseIdentifier:
method, however this is deprecated since 3.0, so that you should create the UITableViewCell
using the initWithStyle:reuseIdentifier:
method.
You can access the frame of the UITableViewCell
using the frame
property and change it's size:
CGRect frame = cell.frame;
frame.size.width = 123f;
cell.frame = frame;
For indentation on the left side you can simply use the UITableViewDelegate
method tableView:indentationLevelForRowAtIndexPath:
You can also add a specific subview to the UITableViewCell
on the right side (an accessory view) using the accessoryView property of the cell:
UIView *view = ...
cell.accessoryView = view;
(If the value of this property is not nil, the UITableViewCell class uses the given view for the accessory view in the table view’s normal (default) state; it ignores the value of the accessoryType property. The provided accessory view can be a framework-provided control or label or a custom view. The accessory view appears in the the right side of the cell. UITableViewCell Class Reference)