I'm trying to figure out how to add a textfield in a view in my iphone app by clicking on a button. Is it possible?

I thought it should be as easy as this. But it's not working.

```
- (IBAction)addText:(id)sender

CGRect textField = CGRectMake(0.0, 0.0, 100.0, 30.0);
UITextField *textField = [[UITextField alloc] initWithFrame:textField];

```