0

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"

Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143

1 Answers1

1

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
Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143
  • vishwas parashar -- I was worked in SWL more than 10 projects , in here choice no-2 helps you , if you need anything related to this i will support u – Anbu.Karthik Mar 02 '16 at 11:21