Reputation: 15
I have just created a side menu using library SWRevealViewController
in IOS. I want to set title for my side menu when i click on side menu icon.
I tried the below code but it is not working.
#import "MenuViewController.h"
#import "SWRevealViewController.h"
@interface MenuViewController ()
@end
@implementation MenuViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.title = @"My test title";
Here the MenuViewController is the Subclass of TableViewController
for example
Upvotes: 0
Views: 497
Reputation: 82759
Choice-1
in TableviewConroller
on your indexpath (0) , set as your title
Choice -2
remove the tableviewController and add one UIViewController and embed with tableView and UIlabel
-- UIViewController
-- UIlabel
--UITableview
Upvotes: 1