TSMessages icon indicating copy to clipboard operation
TSMessages copied to clipboard

Question: Getting the notification height

Open StuartMorris0 opened this issue 12 years ago • 1 comments

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.

StuartMorris0 avatar Nov 29 '13 16:11 StuartMorris0

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.

KrauseFx avatar Nov 30 '13 08:11 KrauseFx