jessesquires / JSQMessagesViewController

An elegant messages UI library for iOS

Home Page:https://www.jessesquires.com/blog/officially-deprecating-jsqmessagesviewcontroller/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How i put send button disable mode .if app goes to offline .in Chat

shravanteegala opened this issue · comments

How i put send button disable mode .if app goes to offline .
and enable it comes to online

I am those problem.

please help me.

See this : https://stackoverflow.com/questions/25398664/check-for-internet-connection-availability-in-swift

and if its offline, just change sendButton to nil or hidden = true and then toggle once online

Thanks, @mding5692.

@shravanteegala Normally, it should have an observer(notification, block etc) for observing going offline and back online. So, you can adjust the send button based on the connection change.