mesibo / messenger-app-ios

Open Source Messenger App For iOS - Real-time Messaging, Voice and Video Calls
https://mesibo.com
106 stars 32 forks source link

Unable to Customize MesiboViewController #1

Open Hirobreak opened 5 years ago

Hirobreak commented 5 years ago

I initialize mesibo viewcontroller as follows inside a UITabBarController which is inside a UINavigationController: mesiboVc = MesiboUI.getViewController() But i always get a gray navigationBar, no icon and Messages as tabBarItem title I tried customizing the navigationBar like this:

  let options = MesiboUiOptions()
  options.mToolbarColor = 0xFF0000
  options.emptyUserListMessage = "No Messages Found"
  Mesibo.getInstance()?.setUiOptions(options)

Before getting ViewController but got no results. How can i accomplish the desired customization

mesibo commented 5 years ago

Hi, I suggest you look at AppDelegate.m source code and especially the line linked below which initializes the button bar.

https://github.com/mesibo/messenger-app-ios/blob/master/MesiboApplication/AppDelegate.m#L492

Please note that it is changing in the next version. We have made the design more flexible to the extent that you can directly pick the tableview in your own view controller without using the entire MesiboViewController.

Hirobreak commented 5 years ago

Thank you, i managed to add custom icons, but I still can't change the navigationBar background color, not even when using UIAppearance()

Any thoughts on this?

danieltigse commented 5 years ago

Hi, I have the same problem. I can't change the navigationBar background color. Please give us a temporal solution or something.

mesibo commented 5 years ago

Daniel, can you update your frameworks and try again?

We definitely will solve this if it is happening with the latest frameworks too