Skip to content

Commit

Permalink
Update:修改RecordHUD初始化方法
Browse files Browse the repository at this point in the history
  • Loading branch information
Dywane committed Jan 31, 2018
1 parent 32eeea0 commit f19911a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions MCChatHUD/MCChatHUD/View/MCRecordHUD.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ class MCRecordHUD: UIView {
}

//MARK: - Init
override init(frame: CGRect) {
super.init(frame: frame)

convenience init() {
self.init(frame: .zero)
self.frame.size.width = HUDWidth
self.frame.size.height = HUDHeight
center = CGPoint(x: ScreenWidth/2, y: ScreenHeight/2 - 50)
Expand All @@ -42,6 +43,10 @@ class MCRecordHUD: UIView {
setUpShadow()
}

override private init(frame: CGRect) {
super.init(frame: frame)
}

required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
Expand Down

0 comments on commit f19911a

Please sign in to comment.