Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

TrentS

macrumors 6502
Original poster
Sep 24, 2011
491
238
Overland Park, Kansas
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.

:confused: :confused: :confused: :confused:
 
uhh, that would be weird to have a game performing a segue in the middle of gameplay but.....

look into performSegueWithIdentifier:sender:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.