vishwas parashar
vishwas parashar

Reputation: 15

how to add title to side menu

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

for example like the title "Myshopi"

Upvotes: 0

Views: 497

Answers (1)

Anbu.Karthik
Anbu.Karthik

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

Related Questions