In my game, I’m trying to switch from versus AI to versus human opponent within a single game viewcontroller according to user input from a previous menu screen. Should I control the switch with simple objective-C if statements or is it possible to use #if #elif #endif?
Share
ifis for deciding things when your program is running.#ifis for deciding things when your program is compiled.If you want to support both paths in the same build of the program, you should be using
if.