Back to Mobile View

Skip to Content

TUAW Deals

Tag: Application Kit

Testing for OS X vs iOS

Yesterday, I was messing around building shared NSLayoutConstraint code to be used across iOS and OS X. I put in a few #if TARGET_OS_MAC directives, assuming they'd just work. They didn't. Turns out that you should always check for TARGET_OS_IPHONE first, before TARGET_OS_MAC because the...

Continue Reading

© 2014 AOL Inc. All Rights Reserved.