I have a custom UIView
and .xib
called ViewA
, ViewA
has a fixed height of 60pts
. ViewA
has a subview named ViewB
(which has its own .xib
) which contains a UITableView
. ViewB
is initially hidden and has a height of 400pts
(much bigger than the height of ViewA
). ViewA
also has button which shows and hides ViewB
. ViewB
s X
and Y
coordinates are 0,0
to that of ViewA
, ViewB
also has the same width as ViewA
. When pressing ViewA
s button to reveal ViewB
it is shown correctly - ViewB
extends outside of ViewA
s bounds. However, I can only scroll ViewB
s UITableView
within the first 60pts
(the bounds of ViewA
) the rest of the extended view does not scroll.
I have tried using hitTest
answers found here but I cannot seem to get it to work.
The desired effect is that ViewA
will display ViewB
which should have its full interaction and act as normal. ViewB
should also overlap any other views that may be in a UIViewController
. It works fine apart from the UITableView in ViewB
not being fully scrollable ie. scrolling from the row at index 0
scrolls the table fine, but there is no scrolling from `index 5`` for example.
Any help would be greatly appreciated?
Some more info:
- Autolayout is being used in the storyboard
ViewB
szPosition
is 1- the desired effect is similar to date of a DropDown menu.
- I dont want to use a third party library
Thanks in advance.