souzainf3 / RNNotificationView

Emulates the native Notification Banner UI for any alert
MIT License
68 stars 22 forks source link

Crash #2

Open kamlesh-jswal opened 7 years ago

kamlesh-jswal commented 7 years ago

Hi Team,

App is crashing some time on second line of code let pan = UIPanGestureRecognizer(target: self, action: #selector(RNNotificationView.didPan(_:))) self.addGestureRecognizer(pan) // here its crashing.

Please help me. Thanks

souzainf3 commented 7 years ago

This line is from the RNNotificationView or are you add this lines? Whats Xcode version?

kamlesh-jswal commented 7 years ago

code is from RNNotificationView. Complete code provided by RNNotificationView - but i don't want UITapGestureRecognizer so i comment that part of code. you can check code from line 230-233, I commented code line 230-231 because i don't want tap gesture.

// Gestures let tap = UITapGestureRecognizer(target: self, action: #selector(RNNotificationView.didTap(:))) self.addGestureRecognizer(tap) let pan = UIPanGestureRecognizer(target: self, action: #selector(RNNotificationView.didPan(:))) self.addGestureRecognizer(pan)

I am using Xcode 8.3.3