ios - Overlapping table view scrolls tableView behind it -


basically have compound view in storyboard:

  • a uiview inputs. let's call view1
  • container view displays tableview controller (view2)

works fine.

i have small issue when displayed tableview uiview overlaps bottom view2 own results. cells stays within bound of view1 can interacted , selected. part of tableview (autocomplete results) overlaps view2 (and looks on top) scrolls view2..

enter image description here

i tried referencing view1 , setting view1.layer.zposition higher value. wouldn't help..

any suggestions?

if requires modifying code swift syntax preferred on obj-c

your problem comes fact tableview autocomplete results added view1. , receive touches sent it. if select clipsubviews on view1 you'll see autocomplete results tableview cut bounds of view1 1.

try add autocomplete results tableview self.view(main view of view controller). way above both view1 , view2 , receive touches come on tableview


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -