I have a tableview with each cell containing a collectionView (scrolling disabled). When swiping left or right with VoiceOver, the focus moves in unexpected ways. I want to prevent VoiceOver from scrolling the tableview so I can implement custom scrolling behavior.
Related
I have one UICollectionView with many sections and cells. I have used custom UICollectionView layout to achieve this design. It has scroll on both horizontal and vertical, with some static cells. Check the video for more details. All the data is setting proper.
Video Link.
Issue is with dragging. I want to drag the cells in the vertical direction and if its within the visible cells there is no problem. But when the cell is drag to scroll the UICollectionView and to bottom there is layout issues with top sticky sections.
Blue remains static when scrolling from left to right and red remains static when scrolling to bottom.
I have implemented drag using longpress gesture. And used CADisplayLink to scroll the UICollectionView while dragging. It would be better if any suggestions on how to scroll the UICollectionView while dragging the cell and how to keep the sticky cells without and layout issues.
I just want to enable free handwriting on a tableview cell with out actually interfering the table view scroll gestures.
I have a UITableView with custom cells. It scrolls every time if I swipe fast, but when I swipe more slowly, sometimes it won't scroll.
Setup:
UITableview controller with a standard table view. I load some images in the cells asynchronously. The cells subclassed, but the only methods I override are awakeFromNib and layoutSubviews.
I'm setting these methods:
self.scrollView.delaysContentTouches = true
self.scrollView.canCancelContentTouches = true
Symptoms
It's almost as if the cell doesn't return the touch event to the scrollView. For example, in the Mail app, you can hold down on a cell, but if you keep scrolling, it will break the touch and allow you to scroll.
I'm being as specific as I can without dumping a bunch of code, let me know if there's any other relevant info I should add.
Things to try:
Do you have any other gesture recognizers in the view?
If it's not necessary to have user interaction with the cells, you can disable selection in the UITableView
Is this issue only present on hardware or also in the simulator? Depending on your hardware (i.e. older iPod Touches) some ios mobile devices have less responsive displays
Depending on the content of your cells, you may be scrolling inside a textView or something similar. Maybe try disabling scrolling inside those controls?
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.
I've put UIButton on UITableViewCell and it takes full frame of cell.
When I'm trying to swipe cell to start editing mode, button catches this swipe event as usual touch and doesn't forward it to UITableView.
Is there an easy and neat way to forward horizontal swipe on button to UITableView or UITableViewCell, not sure, who should handle this event to start editing mode.
BTW, vertical swipe is forwarded correctly to UITableView and allows to scroll it.