views:

48

answers:

1

Hi,

I'm trying to add a textfield into a navigation bar, but it doesn't show up in the simulator. I do it as follows inside viewdidload:

UITextView *textField = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, 170, 44)];
self.navigationItem.titleView = textField;

Any ideas?

Thanks!

A: 

Is the left button item non-nil?

Graham Lee
The left bar item is nil still. i only have a right bar button.is that reason?
David Hsu