Commit bc5ca022 authored by David黄金龙's avatar David黄金龙

文件名称 修改

parent 49ccf706
This diff is collapsed.
...@@ -12,12 +12,6 @@ import AttributedString ...@@ -12,12 +12,6 @@ import AttributedString
class YHScorePersonInfoCell: UITableViewCell { class YHScorePersonInfoCell: UITableViewCell {
static let cellReuseIdentifier = "YHScorePersonInfoCell" static let cellReuseIdentifier = "YHScorePersonInfoCell"
// var dataModel : YHContactItemModel? {
// didSet {
//// updateUI()
// }
// }
//头像 //头像
private lazy var headImagV : UIImageView = { private lazy var headImagV : UIImageView = {
let imageV = UIImageView(image: UIImage(named: "score_header_default")) let imageV = UIImageView(image: UIImage(named: "score_header_default"))
......
// //
// BsHUD.swift // YHHUD.swift
// PKHUD Demo // PKHUD Demo
// //
// Created by ahao on 2018/3/20. // Created by ahao on 2018/3/20.
...@@ -76,17 +76,17 @@ class YHHUD { ...@@ -76,17 +76,17 @@ class YHHUD {
let todoView: UIView let todoView: UIView
switch content { switch content {
case let .progress(message): case let .progress(message):
todoView = BsHUDProgressView(title: message) todoView = YHHUDProgressView(title: message)
case let .success(message): case let .success(message):
todoView = BsHUDSuccessView(title: message) todoView = YHHUDSuccessView(title: message)
case let .error(message): case let .error(message):
todoView = BsHUDErrorView(title: message) todoView = YHHUDErrorView(title: message)
case let .warning(message): case let .warning(message):
todoView = BsHUDWariningView(title: message) todoView = YHHUDWariningView(title: message)
case let .rotatingImage(image, message): case let .rotatingImage(image, message):
todoView = BsHUDSquareBaseView(image: image, title: message) todoView = YHHUDSquareBaseView(image: image, title: message)
case let .image(image, message): case let .image(image, message):
todoView = BsHUDSquareBaseView(image: image, title: message) todoView = YHHUDSquareBaseView(image: image, title: message)
} }
return todoView return todoView
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import UIKit import UIKit
class BsHUDContainerView: UIView { class YHHUDContainerView: UIView {
static let defaultFrame = CGRect(origin: CGPoint.zero, size: CGSize(width: 156.0, height: 156.0)) static let defaultFrame = CGRect(origin: CGPoint.zero, size: CGSize(width: 156.0, height: 156.0))
...@@ -18,12 +18,12 @@ class BsHUDContainerView: UIView { ...@@ -18,12 +18,12 @@ class BsHUDContainerView: UIView {
init(contentView:UIView,offSet: CGFloat = 0) { init(contentView:UIView,offSet: CGFloat = 0) {
self.contentView = contentView self.contentView = contentView
self.offSet = offSet self.offSet = offSet
super.init(frame: BsHUDContainerView.adjustFrame(contentViewFrame: contentView.frame, offSet: offSet)) super.init(frame: YHHUDContainerView.adjustFrame(contentViewFrame: contentView.frame, offSet: offSet))
addSubview(contentView) addSubview(contentView)
} }
func adjustFrame() -> CGRect{ func adjustFrame() -> CGRect{
return BsHUDContainerView.adjustFrame(contentViewFrame: contentView.frame, offSet: offSet) return YHHUDContainerView.adjustFrame(contentViewFrame: contentView.frame, offSet: offSet)
} }
class func adjustFrame(contentViewFrame: CGRect, offSet: CGFloat) -> CGRect{ class func adjustFrame(contentViewFrame: CGRect, offSet: CGFloat) -> CGRect{
......
// //
// BsHUDErrorView.swift // YHHUDErrorView.swift
// PKHUD Demo // PKHUD Demo
// //
// Created by ahao on 2018/3/20. // Created by ahao on 2018/3/20.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import UIKit import UIKit
import PKHUD import PKHUD
class BsHUDErrorView: BsHUDSquareBaseView { class YHHUDErrorView: YHHUDSquareBaseView {
public init(title: String? = nil) { public init(title: String? = nil) {
super.init(image: UIImage(named: "float_icon_error"), title: title) super.init(image: UIImage(named: "float_icon_error"), title: title)
......
// //
// BsHUDProgressView.swift // YHHUDProgressView.swift
// PKHUD Demo // PKHUD Demo
// //
// Created by ahao on 2018/4/19. // Created by ahao on 2018/4/19.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import UIKit import UIKit
import PKHUD import PKHUD
class BsHUDProgressView: BsHUDSquareBaseView,PKHUDAnimating { class YHHUDProgressView: YHHUDSquareBaseView,PKHUDAnimating {
public init(title: String? = nil) { public init(title: String? = nil) {
super.init(image:UIImage(named:"float_icon_loading"), title: title) super.init(image:UIImage(named:"float_icon_loading"), title: title)
......
// //
// BsHUDRotatingImageView.swift // YHHUDRotatingImageView.swift
// PKHUD Demo // PKHUD Demo
// //
// Created by ahao on 2018/4/19. // Created by ahao on 2018/4/19.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import UIKit import UIKit
import PKHUD import PKHUD
class BsHUDRotatingImageView: BsHUDSquareBaseView,PKHUDAnimating { class YHHUDRotatingImageView: YHHUDSquareBaseView,PKHUDAnimating {
public func startAnimation() { public func startAnimation() {
imageView.layer.add(PKHUDAnimation.discreteRotation, forKey: "progressAnimation") imageView.layer.add(PKHUDAnimation.discreteRotation, forKey: "progressAnimation")
......
// //
// BsHUDSquareBaseView.swift // YHHUDSquareBaseView.swift
// PKHUD Demo // PKHUD Demo
// //
// Created by ahao on 2018/4/19. // Created by ahao on 2018/4/19.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import UIKit import UIKit
import PKHUD import PKHUD
class BsHUDSquareBaseView: UIView { class YHHUDSquareBaseView: UIView {
static let defaultSquareBaseViewFrame = CGRect(origin: CGPoint.zero, size: CGSize(width: 120, height: 120)) static let defaultSquareBaseViewFrame = CGRect(origin: CGPoint.zero, size: CGSize(width: 120, height: 120))
...@@ -22,7 +22,7 @@ class BsHUDSquareBaseView: UIView { ...@@ -22,7 +22,7 @@ class BsHUDSquareBaseView: UIView {
} }
init(image: UIImage? = nil, title: String? = nil) { init(image: UIImage? = nil, title: String? = nil) {
super.init(frame: BsHUDSquareBaseView.defaultSquareBaseViewFrame) super.init(frame: YHHUDSquareBaseView.defaultSquareBaseViewFrame)
backgroundColor = UIColor.black backgroundColor = UIColor.black
imageView.image = image imageView.image = image
titleLabel.text = title titleLabel.text = title
......
// //
// BsHUDSuccessView.swift // YHHUDSuccessView.swift
// PKHUD Demo // PKHUD Demo
// //
// Created by ahao on 2018/3/20. // Created by ahao on 2018/3/20.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import UIKit import UIKit
import PKHUD import PKHUD
class BsHUDSuccessView: BsHUDSquareBaseView { class YHHUDSuccessView: YHHUDSquareBaseView {
public init(title: String? = nil) { public init(title: String? = nil) {
super.init(image: UIImage(named:"float_icon_success"), title: title) super.init(image: UIImage(named:"float_icon_success"), title: title)
} }
......
// //
// BsHUDWariningView.swift // YHHUDWariningView.swift
// PKHUD Demo // PKHUD Demo
// //
// Created by ahao on 2018/4/19. // Created by ahao on 2018/4/19.
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import UIKit import UIKit
class BsHUDWariningView: BsHUDSquareBaseView { class YHHUDWariningView: YHHUDSquareBaseView {
public init(title: String? = nil) { public init(title: String? = nil) {
super.init(image: UIImage(named:"float_icon_caveat"), title: title) super.init(image: UIImage(named:"float_icon_caveat"), title: 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