Does not work correctly on iPad since iOS 8
The message window seems to drop from the top of the screen down to "below" the bottom of the screen and then come back, instead of just going down nicely from the top of the screen and then up again. That appears on the master view controller of the splitViewController in iOS 8.
Has anyone found a work around for this? Im using the latest TSMessages version, and I'm seeing this too. all other devices seem to work fine.
Same issue here!
I think the issue has already been fixed but didn't yet make it to the cocoapods. For people who need a quick fix
In TSMessage.m change
void (^addStatusBarHeightToVerticalOffset)() = ^void() {
BOOL isPortrait = UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation]);
CGSize statusBarSize = [UIApplication sharedApplication].statusBarFrame.size;
CGFloat offset = offset = isPortrait ? statusBarSize.height : statusBarSize.width;
verticalOffset += offset;
};
to
void (^addStatusBarHeightToVerticalOffset)() = ^void() {
BOOL isPortrait = UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation]);
CGSize statusBarSize = [UIApplication sharedApplication].statusBarFrame.size;
CGFloat offset = 0;
if (TS_SYSTEM_VERSION_LESS_THAN(@"8.0")) {
offset = isPortrait ? statusBarSize.height : statusBarSize.width;
} else {
offset = statusBarSize.height;
}
verticalOffset += offset;
};
@petripartanen thank you !