     
     private var installedMessage: GSMessage? {
         get { return objc_getAssociatedObject(self, &installedMessageKey) as? GSMessage }
-        set { objc_setAssociatedObject(self, &installedMessageKey, newValue, UInt(OBJC_ASSOCIATION_RETAIN_NONATOMIC)) }
+        set { objc_setAssociatedObject(self, &installedMessageKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN_NONATOMIC) }
     }
     
     private var uninstallMessage: GSMessage? {
         get { return objc_getAssociatedObject(self, &uninstallMessageKey) as? GSMessage }
-        set { objc_setAssociatedObject(self, &uninstallMessageKey, newValue, UInt(OBJC_ASSOCIATION_RETAIN_NONATOMIC)) }
+        set { objc_setAssociatedObject(self, &uninstallMessageKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN_NONATOMIC) }
     }
     
 }

        messageText.text = text
        messageText.font = GSMessage.font
        messageText.textColor = textColor
        messageText.textAlignment = .Center
        message.addSubview(messageText)
        
        if hideOnTap { message.addGestureRecognizer(UITapGestureRecognizer(target: self, action: "handleTap:")) }

        switch position {
        case .Top:
            if let inViewController = inViewController {
                let navigation = inViewController.navigationController ?? (inViewController as? UINavigationController)
                let navigationBarHidden = (navigation?.navigationBarHidden ?? true)
                let navigationBarTranslucent = (navigation?.navigationBar.translucent ?? false)
                let statusBarHidden = UIApplication.sharedApplication().statusBarHidden
                if !navigationBarHidden && navigationBarTranslucent && !statusBarHidden { offsetY+=20 }
                if !navigationBarHidden && navigationBarTranslucent { offsetY+=44; }
                if (navigationBarHidden && !statusBarHidden) { offsetY+=20 }
