at0m87
at0m87

Reputation: 245

Two viewControllers, but 1 viewController Scene in Storyboard

A little background. i have two viewControllers each with their own objects, but i would like to put them into one viewController Scene.

In my ViewController2, there is an IBOutlet UIImageView *drawImage which is supposed to be connected to a UIImageView in the one viewController Scene which is ViewController1's view controller scene.

In the only view controller scene, this UIImageView is embeded on a View(lets call it View2) which belongs to the ViewController2 and in that controller is all the code responsible for recognising the finger strokes.

This View2 that i previously mentioned is sitting in another bigger View(lets call this View1). So it is like View2 in View1(main).

View1 = ViewController1 and the second smaller View2 = ViewController2.

Two different ViewControllers(.h & .m), 1 View Controller Scene in storyboard.

Any idea how i can achieve it?

Upvotes: 1

Views: 1945

Answers (1)

T.J.
T.J.

Reputation: 3960

I think the answer I gave here will work for you. A container view is used to load your two different views. You can put the code in a method which is called when you recognize gestures or button presses or whatever.

Upvotes: 0

Related Questions