Commit 414a3757 authored by Steven杜宇's avatar Steven杜宇

// UI走查

parent 0cdafbf9
...@@ -315,11 +315,11 @@ class YHSheetPickerView: UIView { ...@@ -315,11 +315,11 @@ class YHSheetPickerView: UIView {
whiteContentView.addSubview(pickerView) whiteContentView.addSubview(pickerView)
let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue) let corner = UIRectCorner(rawValue: UIRectCorner.topLeft.rawValue | UIRectCorner.topRight.rawValue)
let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(16.0, 16.0)); let path = UIBezierPath(roundedRect:bounds,byRoundingCorners: corner,cornerRadii:CGSizeMake(8.0, 8.0))
let layer = CAShapeLayer(); let layer = CAShapeLayer()
layer.frame = whiteContentView.bounds; layer.frame = whiteContentView.bounds
layer.path = path.cgPath; layer.path = path.cgPath
whiteContentView.layer.mask = layer; whiteContentView.layer.mask = layer
if let title = title { if let title = title {
titleLabel.text = title titleLabel.text = title
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment