IOS Swift3.1 界面中畫定位線

    //使用百分比畫橫線     func setHLine(pos:CGFloat) {         let rLinePos:CGFloat = pos * UIScreen.main.bounds.height         let line: UIView = UIView(frame: CGRect(x: 0, y: Int(rLinePos), width: Int(UISc
相關文章
相關標籤/搜索