             }
             
             
-            var imageSize:CGFloat = vaildBounds.height * (44.0/60.0)
-            var iconImageSize = CGSize(width: imageSize, height: imageSize)
+            let imageSize:CGFloat = vaildBounds.height * (44.0/60.0)
+            let iconImageSize = CGSize(width: imageSize, height: imageSize)
             
             self.iconImageView.frame.size = iconImageSize
             self.iconImageView.contentMode = UIViewContentMode.ScaleAspectFill
             
             
             self.iconImageView.center = CGPoint(x: iconImageSize.width/2.0, y: vaildBounds.midY)
-            self.iconImageView.frame.offset(dx: 6, dy: 0)
+            self.iconImageView.frame.offsetInPlace(dx: 6, dy: 0)
             
             
             self.messageLabel.frame.size = CGSize(width: vaildBounds.width - imageSize - 10, height: vaildBounds.height)
             self.messageLabel.frame.origin = CGPoint(x: self.iconImageView.frame.maxX + 5, y: vaildBounds.minY)
             
-            self.messageLabel.autoresizingMask = UIViewAutoresizing.FlexibleTopMargin | UIViewAutoresizing.FlexibleLeftMargin
-            self.iconImageView.autoresizingMask = UIViewAutoresizing.FlexibleTopMargin | UIViewAutoresizing.FlexibleRightMargin
+            self.messageLabel.autoresizingMask = [UIViewAutoresizing.FlexibleTopMargin, UIViewAutoresizing.FlexibleLeftMargin]
+            self.iconImageView.autoresizingMask = [UIViewAutoresizing.FlexibleTopMargin, UIViewAutoresizing.FlexibleRightMargin]
             
         }
         

    
    
    
    func show(#type:NotificationType, sampleMessage message:String, animated:Bool){
        
        self.show(inView: self.baseView, type: type, sampleMessage: message, animated: animated)

    }
    
    func show(#inView:UIView, type:NotificationType, sampleMessage message:String, animated:Bool){
        
        self.show(inView: inView , type: type, sampleMessage: message, sampleTitle: "", animated: animated)
        
    }
    
    func show(#type:NotificationType, sampleMessage message:String, sampleTitle title:String, animated:Bool){
        
        self.show(inView: self.baseView, type: type, sampleMessage: message, sampleTitle: title, animated: animated)
        
    }
    
    
    func show(#inView:UIView, type:NotificationType, sampleMessage message:String, sampleTitle title:String, animated:Bool){
        
        var notification = type.simpleNotification()
        
        notification.title = title
        notification.message = message

    
    func show(inViewController viewController:UIViewController, type:NotificationType, sampleMessage message:String, animated:Bool){
        
        let currentAppearSetting = self.contentAppearSetting
        self.contentAppearSetting.appearByOffset.y = viewController.topLayoutGuide.length
        self.show(inView: viewController.view , type: type, sampleMessage: message, sampleTitle: "", animated: animated)
        self.contentAppearSetting = currentAppearSetting
