views:

27

answers:

0

Hi,

I am trying to use a custom iPhone control called Kal, which displays a calendar, and I want to modify it.

Kal programatically sets a table view as follows:

tableView = [[UITableView alloc] initWithFrame:fullWidthAutomaticLayoutFrame style:UITableViewStylePlain];
tableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
[contentView addSubview:tableView];

I wanted to remove the table view and add in my own view with some controls in it, but this view does not show up in the application when I simulate:

textField = [[UITextField alloc] initWithFrame:fullWidthAutomaticLayoutFrame];
bottomView = [[UIView alloc] initWithFrame:fullWidthAutomaticLayoutFrame];
[bottomView addSubView:textField];
[contentView addSubView:bottomView];

Why won't this work?