TSMessages
TSMessages copied to clipboard
Question: Getting the notification height
I am using TSMessages to show a notification when the network connection is lost.
The notification is being added to a Navigation Controller (that has a nav Bar) and holds a table view.
What I would like to do is change the contentInset of the tableview, when the Notification is shown. Is there a way I can access the height of the displayed Notification (or notifications if multiple are shown) ?
Secondly, is there a way to get a reference to what notification is being shown. For example, if I show one as a note to the user and one as a warning I need to determine when the warning one is being shown. I cannot check against title as I am using localisation so the title string would be different depending on the language.
It sounds like most of your wished functionality is not possible with the current TSMessages "API". I guess the best solution for you would be a fork where you add the feature you need and hand in a pull request for each individual feature.