0

I am new to iOS,

I have initial viewController in storyboard,

and on click of button i am doing presentingViewController with presentViewController but it doesn't work.

Here is my code i have tried...

- (IBAction)btnClicked:(id)sender {
   [self.presentingViewController presentViewController:LSUniversalVariable.callViewController animated:YES completion:nil];
}

Where i am making mistake?

please help and thanks in advance!

Apple developer
  • 137
  • 1
  • 11

1 Answers1

0

You need to change you presenting viewcontroller line .

   [self presentViewController:LSUniversalVariable.callViewController animated:YES completion:nil];
KKRocks
  • 8,222
  • 1
  • 18
  • 84