Reconnect is xmpp not connected.
Validate whether a friend is online(by jidStr).
Try to reconnect is xmppStream is not connected.
OnAbsence and OnPresence.
Extract online and offline logic to IMCenter.
Reload FriendList on setup, presence, absence.
As well on view did appear.
Import FlatUI.
Add flatuikit.
Warning use FlatUIKit.
Restruct Login View in StoryBoard.
Extract alert logic.
Apply FUIButton and Extracted method alert.
Keyboard, Label and something else for LoginView.
Fix import error.
Delete NSLog.
Expose `isConnected.`
Alert and then push to go to login view.

Warning:
Bug: first login twice?
Dont push to go to login view if connecting.
Set Navigation Bar color.