Advertisement
andoird213

AutoLayout Error

Jul 29th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 1.40 KB | None | 0 0
  1.     view!.frame = bounds
  2.         view!.autoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight
  3.         view!.layer.borderColor = outerColor.CGColor
  4.         view!.layer.borderWidth = 2
  5.         view!.layer.cornerRadius = bounds.width / 2
  6.        
  7.         tlcImageView.image = tlcImage
  8.         trcImageView.image = trcImage
  9.         blcImageView.image = blcImage
  10.         brcImageView.image = brcImage
  11.        
  12.         blurView.layer.masksToBounds = true
  13.         blurView.layer.cornerRadius = (blurView.bounds.width / 2)
  14.         blurView.userInteractionEnabled = true
  15.         var blurTap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: "blurTap")
  16.         blurView.addGestureRecognizer(blurTap)
  17.         var blurLP: UILongPressGestureRecognizer = UILongPressGestureRecognizer(target: self, action: "blurLP:")
  18.         blurView.addGestureRecognizer(blurLP)
  19.        
  20.         hTagLabel = UILabel()
  21.         hTagLabel.frame = UIEdgeInsetsInsetRect(blurView.bounds, UIEdgeInsetsMake(0, 4, 0, 8))
  22.         hTagLabel.adjustsFontSizeToFitWidth = true
  23.         hTagLabel.text = hTag
  24.         hTagLabel.textColor = UIColor.whiteColor()
  25.         hTagLabel.textAlignment = NSTextAlignment.Center
  26.        
  27.         var vibrancyView: UIVisualEffectView = UIVisualEffectView(effect: blurView.effect)
  28.         blurView.addSubview(vibrancyView)
  29.         vibrancyView.addSubview(hTagLabel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement