Reputation: 2325
-(IBAction)textFieldDoneEditing:(id) sender {
[textInfo resignFirstResponder];
[self.navigationController setNavigationBarHidden:NO animated:YES];
[self.view addSubview:(UITableViewController*)informationTableView];// don't Work
}
expected expression before 'informationTableView'
I want to have this view when he clicks on the keyboard end
Upvotes: 0
Views: 74
Reputation: 22726
If UITableViewController is UIViewController you have to do like this
[self.view addSubview:[(UITableViewController*)informationTableView].view];
Hope this helps.
Upvotes: 1
Reputation: 31730
your below statement is wrong
[self.view addSubview:(UITableViewController*)informationTableView];// will never work
Check correct one below.
UIView* MyView = (UITableViewController*)informationTableView.view ;
[self.view addSubview:MyView];
MyView must a subclass of UIView
,
Q. Let me know the class name and it's super class name of informationTableView
.
Upvotes: 2