Refactored code so IBOutlets show on Xcode 6's Interface Builder

The

    #if TARGET_OS_IPHONE
    #else
    #endif

macros (which provide universal iOS/OS X support) were causing some problems and Xcode 6 was not showing the IBOutlets. I refactored the code and now is Xcode 6 friendly.

I have not tested it on OS X, but it should compiler and work just fine.