IOS Table View + TextView in a UITableView Cell - ios

I have a static table view with 3 sections and a row in each section.
For each row, I have it setup to be 150 talk in the heightForRowAtIndexPath.
Then on a tap of the row, I have it setup to expand to the height of the device.
All of that works great.
In the expanded row is a textView. When the user selects the textview, the keyboard pops up and pushes the top of the row off screen for a second and then the tableview seems to catch itself and bring it back down to be visible. How can I make sure that it doesnt do that because it looks buggy from the users POV.

Related

Passing scroll of uitableview in tableview inside uitableviewcell

I've got a UITableView ( let it be big table view ) with two cells. The second cell has UITableView inside. I want to scroll down first cell, than, when it hides from screen on top, i want to disable scroll on the big table view and enable scrolling on the second cell with table view. And when the second table view scrolls to top - enable scrolling on big table view. Here is the link to video :
Video
I've implemented it, but with lag - when scrolling of big table finishes, the transition to scrolling of second cell's table isn't smooth. Did anyone implement this before ? Or can you suggest any github help?) Thanks

Expandable UITableView Sticking

I am creating an expandable UITableView.  It works fine but the issue I am running into is when a given row is expanded and the user scrolls up, the opened section row scrolls up to the top of the visible table and stick.
In the below image, the detail row material and the succeeding section rows scroll OVER the opened section row.
I would expect that the section row would scroll off the top of the visible table view.
Am I missing something that would allow the section row to scroll up rather than stick?

How to scroll or prevent scrolling in UICollectionView using swift?

I have a UICollectionView with one section, 10 cells and horizontal scrolling using a Flow Layout.
One cell occupies the entire screen, and has a UITextView and two UIButtons.
How can I prevent scrolling if no button in the cell is selected, and if it is selected, how can I scroll to the next cell on a UIBarButton click?
I would also like to preserve selection in order to be able to go back to the previous cell and change the selection if needed.

reloadSections:withRowAnimation: automatically scrolls UITableView

I am using a UITableview with dynamic height rows, and in content I have "Read more" type button. On tapping the button, I append data in a row and call reloadSections:withRowAnimation: for that section.
Everything works as expected, with just one problem - that the tableview automatically scrolls to some other cell after reloadSections:withRowAnimation:. Can anyone help me to find out why it is happening ?

UITableView won't stay scrolled up in iPad popover

I use a UITableView inside a popover in my iPad app to ask for user input, just like the Contacts app on the iPhone. It has 3 sections, and each section has multiple rows. Clicking on a row brings up a keyboard. When clicking on the bottom row of the bottom section, the keyboard hides the row, and when I scroll the table up, it bounces back down instead of staying scrolled up. On the iPhone Contacts app, the table stays scrolled up, and this is the behavior I want. Any pointers?
It's probably because you are not resizing your table view when the keyboard appears. You should take a look here http://developer.apple.com/library/ios/#documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html.
The section "Moving Content That Is Located Under the Keyboard" is what you are looking for.
For your information, a UITableViewController automatically resizes its table view when there is in-line editing of text fields. If it's possible for you, you can just change your class to a UITableViewController and you won't have to worry about resizing.

Resources