Ternary Toggle

Toggle using the ternary operator in Obj-C:

isToggled = isToggled ? NO : YES;

Comments (0)

Leave a comment...

About

I'm struggling student trying to find the path to genius. I like problems, and figuring out solutions, programming, and music. I hit drums.