SwiftParseChat
SwiftParseChat copied to clipboard
The number of messages does not refresh automatically
Suppose A has sent 4 messages to B. The number of messages does not refresh automatically, it remains as the number last time you tapped Messages tab at the bottom.
You need to tap Message tab at the bottom to get the latest number of messages that you received.
could you tell me how you fixed the import error with Alamofire ?
I have not experienced the import error with Alamofire yet...
To fix this problem try this:
Create a NSTimer then add this code in the viewwillappear method: timer = NSTimer.scheduledTimerWithTimeInterval(Refresh Time, target: self, selector: "Your method that loads messages", userInfo: nil, repeats: true)
and to stop the timer when awayy from the page add this to the viewwilldissapear method: timer.invalidate