Hi guys: I am writing an IPhone IM chat window now.
You know if the nagviationItem.rightBarItem in an UITableviewController is set to editButtonItem, you click the edit button then a red delete icon is shown to every single row, like shown here.
The problem is, I have a UIViewController instead of a UITableViewController:
@interface ChatUIViewController : UIViewController<UITableViewDelegate,UITableViewDataSource>{
UITableView *table;
UITextField *textField;
}
and i did same to set editButtonItem:
- (void)viewDidLoad {
[super viewDidLoad];
self.navigationItem.rightBarButtonItem = self.editButtonItem;
}
when i click the edit button, the red delete icon will not show.
How can I make the red delete icon shown in my ChatUIViewController?
Thanks in advance to anyone who might help. Michael