I found the problem. In `JMCViewController.m` they hardcode the size of the text view. This is bad practice and should be fixed.
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { CGRect newFrame = self.view.bounds; if (UIInterfaceOrientationIsPortrait(self.interfaceOrientation)) { newFrame.size.height = 200; } else { newFrame.size.height = 106; } self.descriptionField.superview.frame = newFrame; self.countdownView.center = self.descriptionField.center; }
<body></body>
Based on your question/answer I've created a pull request that fixes this. Basically instead of having a hardcoded value for the height that depends of orientation and device we take the current height and subtract the height of the keyboard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your fix might fix the issue now but you shouldn't hard code the keyboard size. Does your solution work for iPad (try it and it wont), the keyboard size is different. Also what about landscape orientation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tested it on the iPad simulator and it worked fine as the layout in the iPad is different (the buttons are in the top right of the view), check line 214 to 220: https://bitbucket.org/rvillarreal/jiraconnect-ios/src/a5f1b02b723d/JIRAConnect/JMCClasses/Base/JMCViewController.m
You are right, I read that the keyboard height was the same for both orientations but it turned out it's not. I'll update it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've updated the pull request. Thanks for the feedback! It was my bad not double checking the keyboard size in the different orientations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.