If self.navigationController.navigationBar.hidden = YES will be used the offset of the view is not correctly calculated.
I added the - (BOOL)isNavigationBarInNavigationControllerHidden:(UINavigationController *)navController method to check the navigation controller isNavigationBarHidden property and the navigation controllers navigationBar isHidden property.

In the example project there is a debug value for navigationBar.hidden and it must be removed in the main release.
+ (BOOL)isNavigationBarInNavigationControllerHidden:(UINavigationController *)navController is now a static method call.

removed the debug value in the example project

calculating the view height in TSMessageView is now correct
Changelog added
Merge pull request #119 from mRs-/hidden-bugfix

UINavigationBar isHidden bugfix