Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The number of messages does not refresh automatically #6

Open
humbleProgram opened this issue Jun 21, 2015 · 3 comments
Open

The number of messages does not refresh automatically #6

humbleProgram opened this issue Jun 21, 2015 · 3 comments

Comments

@humbleProgram
Copy link

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.

@andy-io
Copy link

andy-io commented Jun 24, 2015

could you tell me how you fixed the import error with Alamofire ?

@humbleProgram
Copy link
Author

I have not experienced the import error with Alamofire yet...

@Jamwesayer
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants