0

Will it work if I create two different view controllers using storyboard (VC1 and VC2) and then add VC2 to VC1 as a subview programmatically? This VC2 has buttons to be accessed which is managed using a storyboard.

Siddharthan
  • 141
  • 1
  • 2
  • 11

2 Answers2

0

use protocol to define a delegate method in VC1 controller...

Obaid Maroof
  • 1,361
  • 1
  • 15
  • 37
0

Yes, you can have a UIViewController view as a subview/modal on top of another UIViewController view, such as that the subview/modal should be transparent and you need to setup the delegate for passing value between two views. You may see this example of how to add UIViewController view on the top of another UIViewController view: Display clearColor UIViewController over UIViewController

Community
  • 1
  • 1
hightech
  • 3,654
  • 3
  • 22
  • 34