UITableView awkward touch issue in landscape - ios

I've a strange issue with UITableView, though I've many tableviews but the problem is with a particular tableview (in a viewcontroller that's the first viewcontroller of uitabbarcontroller).
In the portrait mode everything works fine. But in landscape mode, the right half of the tableview doesn't recognise any touches, and also the scrollview doesn't respond. The tableview and the subview of the cell takes there position as I needed, but the responsiveness of the touch-events is limited to the width that corresponds to that of portrait mode. beyond that the touches are not getting recognised.
And it's not all. The strange thing is that when I open another tab and come back to this starting tab, all works fine. Scrollview starts responding even when touched in the right half, the button in the extreme right of the cell works fine and right half of the textview in the middle of the cell also responds properly.
Though all of three tabs of the uitabbarcontroller have tableviews but the starting, the main, tab shows this awkward behaviour.
The behaviour is same for iPhone and iPad.
Kindly respond quickly, if anyone knows the answer to this problem.

Related

Odd collection view scrolling behaviour with UITextField in UICollectionViewCell

I have a UICollectionView with some UICollectionViewCells that contain UITextFields. When a UITextField is selected for editing, the keyboard shows and the UICollectionView moves up accordigly to make the active UITextField visible. I am relying on default behaviour with this and the UITextField is actually appropriately positioned when UIKeyboardDidShowNotification is launched. However, right after that, the UICollectionView will scroll automatically back to the top, and the UITextField will move out of view (behind keyboard).
What could be causing this and how could I debug this behaviour? Please note, that any custom code for UIKeyboardDidShowNotification like scrollRectToVisible or Apple's sample code will not help, as the scrolling off viewable areas happens at a later stage overriding that code. I am just unable to pinpoint the cause of this.
EDITED to add:
An animation to show how the view behaves with a hard keyboard (iPad Pro) when clicking Next to cycles fields. This works fine.
An animation to show how the view behaves with a soft keyboard when clicking Next to cycles fields. Here the keyboard avoiding does not work.

IOS UICollectionView with Paging Enabled pushed off center

I have a collection View that is horizontally scrolling. I checked off paging enabled in storyboard. Everything is working fine however when i scroll through the cell on the first and last cell i can scroll just a little extra and move the cell off center. Does anyone know how to fix this?
EDIT
I added a screenshot, the cell is the gray and the white is the collection view background, that acts as a page and when i drag it just a little that the whit is gone that acts as its own page as well, however the cells that arent first or last dont have this issue

Strange UICollectionView behaviour when VoiceOver is enabled

I have a UICollectionView that each of it's cells is a UIWebView, where the last cell contains a link that pushes another UIViewController on screen. This UIViewController has a back button that pops the UIViewController off screen and should display the last cell on the UICollectionView again.
This flow works fine when VoiceOver is turned off, however when VoiceOver is turned on, when the user taps on the back button - the collection view automatically scrolls back to the first cell.
I've googled this to death, but nothing seems to work.
Any suggestions?

Adding Animating button to each image in UICollectionviewcell just like iPhone Photo App

I'm in the process of creating iPhone photo App like application.In iPhone Photo App on selecting a image -> Tapping share button -> Rotate the device to landscape, we get a selection button at the bottom of all the image items. The selection button frame gets animated when the UICollectionviewCell is scrolled I would like to achieve the same behavior in my app.Any pointers would be really helpful.
Use the scroll view delegate to detect when the user is scrolling. You get a scrollViewDidScroll: event every instant the user scrolls at all. This allows you to figure out whether the button for one of the cells is being moved off the visible area of the screen. If it is, move it the other way to compensate and thus keep it on the screen.
A really useful trick is, once the cell is moving off the screen, to rejigger the button's constraints so that it is constrained to the window (or the root view). This means that it stays still while the scroll view scrolls, even though it is a subview of the cell!
Of course you also have to detect when we have scrolled so far that the button has reached the other edge of the cell, and "let go" of it - allow it to scroll with the cell once again.

iOS UIScrollView with Voice Over

I am relatively new to iOS development and struggling with an issue with UIScollView in Voice Over mode.
I have a UIScollView and a set of WebViews that are shown in the scroll view. The scrolling works perfectly with the swipe in normal mode. When I turn on the VoiceOver, I expected it to work in the same way with the three finger swipe gesture, but it is not responding or scrolling.
I have a xib file and this ScrollView is added to the xib and have custom controller class which adds multiple webviews to the ScrollView
Please let me know if I am missing something very basic.

Resources