I'm getting close to completing my xcode game, but I was wondering if there is a way to have "in game play" trigger a segue from one view controller to another?
The scenario is this...
if (CGRectIntersectsRect(Object1.frame, Object2.frame)) {
// code to segue from view controller 1 to view controller 2 //
}
I'm sure this is a sophomoric stupid question, but I have yet to come across any info or tutorial on how to make this happen. All I have been able to find is "a button segue method", which is not what I want. Thanks in advance.

The scenario is this...
if (CGRectIntersectsRect(Object1.frame, Object2.frame)) {
// code to segue from view controller 1 to view controller 2 //
}
I'm sure this is a sophomoric stupid question, but I have yet to come across any info or tutorial on how to make this happen. All I have been able to find is "a button segue method", which is not what I want. Thanks in advance.