diff --git a/Yep/Info.plist b/Yep/Info.plist
index ecbf4506..99aa3bf4 100644
--- a/Yep/Info.plist
+++ b/Yep/Info.plist
@@ -40,7 +40,7 @@
CFBundleVersion
- 155
+ 156
Fabric
APIKey
diff --git a/Yep/ViewControllers/Feeds/FeedsViewController.swift b/Yep/ViewControllers/Feeds/FeedsViewController.swift
index dff383af..b1ab7270 100644
--- a/Yep/ViewControllers/Feeds/FeedsViewController.swift
+++ b/Yep/ViewControllers/Feeds/FeedsViewController.swift
@@ -9,7 +9,7 @@
import UIKit
import RealmSwift
-class FeedsViewController: UIViewController {
+class FeedsViewController: BaseViewController {
var skill: Skill?
@@ -143,6 +143,10 @@ class FeedsViewController: UIViewController {
deinit {
print("Deinit FeedsViewControler")
}
+
+ override func viewDidAppear(animated: Bool) {
+ super.viewDidAppear(animated)
+ }
override func viewDidLoad() {
super.viewDidLoad()
diff --git a/Yep/Views/Cells/Feed/FeedCell.swift b/Yep/Views/Cells/Feed/FeedCell.swift
index 89d6b22d..448738eb 100644
--- a/Yep/Views/Cells/Feed/FeedCell.swift
+++ b/Yep/Views/Cells/Feed/FeedCell.swift
@@ -35,18 +35,6 @@ class FeedCell: UITableViewCell {
var touchesBeganAction: (UITableViewCell -> Void)?
var touchesEndedAction: (UITableViewCell -> Void)?
var touchesCancelledAction: (UITableViewCell -> Void)?
-
- var tapGesture: UITapGestureRecognizer!
-
- func setup() {
- tapGesture = UITapGestureRecognizer(target: self, action: "doTap")
- }
-
- func doTap() {
- if let touchesEndedAction = touchesEndedAction {
- touchesEndedAction(self)
- }
- }
var attachments = [DiscoveredAttachment]() {
didSet {
@@ -88,7 +76,6 @@ class FeedCell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
- setup()
nicknameLabel.textColor = UIColor.yepTintColor()
messageTextView.textColor = UIColor.yepMessageColor()
distanceLabel.textColor = UIColor.grayColor()
@@ -124,6 +111,9 @@ class FeedCell: UITableViewCell {
}
messageTextView.touchesEndedAction = { [weak self] in
if let strongSelf = self {
+ if strongSelf.editing {
+ return
+ }
strongSelf.touchesEndedAction?(strongSelf)
}
}
@@ -140,12 +130,14 @@ class FeedCell: UITableViewCell {
}
}
- backgroundView.addGestureRecognizer(tapGesture)
-// backgroundView.touchesEndedAction = { [weak self] in
-// if let strongSelf = self {
-//// strongSelf.touchesEndedAction?(strongSelf)
-// }
-// }
+ backgroundView.touchesEndedAction = { [weak self] in
+ if let strongSelf = self {
+ if strongSelf.editing {
+ return
+ }
+ strongSelf.touchesEndedAction?(strongSelf)
+ }
+ }
backgroundView.touchesCancelledAction = { [weak self] in
if let strongSelf = self {
strongSelf.touchesCancelledAction?(strongSelf)
diff --git a/Yep/Views/TextViews/FeedTextView.swift b/Yep/Views/TextViews/FeedTextView.swift
index 670db858..ee815c71 100644
--- a/Yep/Views/TextViews/FeedTextView.swift
+++ b/Yep/Views/TextViews/FeedTextView.swift
@@ -10,29 +10,6 @@ import UIKit
class FeedTextView: UITextView {
- var tapGesture: UITapGestureRecognizer!
-
- override init(frame: CGRect, textContainer: NSTextContainer?) {
- super.init(frame: frame, textContainer: textContainer)
- setup()
- }
-
- required init?(coder aDecoder: NSCoder) {
- super.init(coder: aDecoder)
- setup()
- }
-
- func setup() {
- tapGesture = UITapGestureRecognizer(target: self, action: "doTap")
- addGestureRecognizer(tapGesture)
- }
-
- func doTap() {
- if let touchesEndedAction = touchesEndedAction {
- touchesEndedAction()
- }
- }
-
override func canBecomeFirstResponder() -> Bool {
return false
}
@@ -48,7 +25,7 @@ class FeedTextView: UITextView {
override func touchesEnded(touches: Set, withEvent event: UIEvent?) {
super.touchesEnded(touches, withEvent: event)
-// touchesEndedAction?()
+ touchesEndedAction?()
}
override func touchesCancelled(touches: Set?, withEvent event: UIEvent?) {