mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-10 21:36:49 +10:00
fix: check if isFirstTimeBeenAddAsSubview to makeUI
This commit is contained in:
@@ -18,6 +18,7 @@ class ConversationMoreDetailCell: UITableViewCell {
|
||||
layoutMargins = UIEdgeInsets(top: 0, left: 20, bottom: 0, right: 20)
|
||||
|
||||
textLabel?.textColor = UIColor.darkGrayColor()
|
||||
textLabel?.font = UIFont(name: "Helvetica-Light", size: 18)!
|
||||
}
|
||||
|
||||
required init(coder aDecoder: NSCoder) {
|
||||
@@ -33,6 +34,7 @@ class ConversationMoreCheckCell: UITableViewCell {
|
||||
layoutMargins = UIEdgeInsets(top: 0, left: 20, bottom: 0, right: 20)
|
||||
|
||||
textLabel?.textColor = UIColor.darkGrayColor()
|
||||
textLabel?.font = UIFont(name: "Helvetica-Light", size: 18)!
|
||||
|
||||
makeUI()
|
||||
}
|
||||
@@ -188,10 +190,19 @@ class ConversationMoreView: UIView {
|
||||
})
|
||||
}
|
||||
|
||||
var isFirstTimeBeenAddAsSubview = true
|
||||
|
||||
override func didMoveToSuperview() {
|
||||
super.didMoveToSuperview()
|
||||
|
||||
makeUI()
|
||||
if isFirstTimeBeenAddAsSubview {
|
||||
isFirstTimeBeenAddAsSubview = false
|
||||
|
||||
makeUI()
|
||||
|
||||
let tap = UITapGestureRecognizer(target: self, action: "hide")
|
||||
containerView.addGestureRecognizer(tap)
|
||||
}
|
||||
}
|
||||
|
||||
func makeUI() {
|
||||
|
||||
Reference in New Issue
Block a user