IPhone: UITextField inside TableView cell?

Try this: cell. ContentView addSubview:UITextField alloc initWithFrame:CGRectMake(...) autorelease.

Ok, that works. But now, how would I have a pointer to that text field, so I can do things like give it default text, and an outlet? – Nic Hubbard May 24 '10 at 0:33 sure you can have a pointer to that text field.

For example you would create pointer-class member, create UITextField instance into constructor than add created instance in cell. Ex: cell. ContentView addSubview:instance; – Yakov May 24 '10 at 0:46 Ok, I have done what you said, but the text field is not showing, I tried to create the UITextField instance and assign it to my pointer-class member using rideTitle = UITextField alloc initWithFrame:CGRectMake(12, 45, 260, 25); but that does not seem to work.

Ideas? – Nic Hubbard May 24 '10 at 19:03.

I am trying to programatically add a UITextFiled inside one of my tableview cells. How would I do this? Assuming it is in the following method, what code would I use?

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