ios - Selection not working Collection view embedded in container view -


i have container view @ bottom of screen overlay on top of main view. collection view embedded in container hidden when view first load. on main view controller, have tap gesture ibaction unhide/hide container view when main view tapped.

i have tap gesture ibaction on imageview in collection view. want load new content in main view when collection view cell(image) tapped.

my problem collectionview(container) hidden again when tap on collection view image. appears me tap gesture on main view has priority on tap gesture on collection view. have tried didselecteditematindexpath instead of tap gesture on collection view controller not work. want container hidden if tap anywhere on main view not container/collection view. @ lost, please help.

i want mention swiping collection view working fine without additional coding.

check imageview's property userinteractionenabled

 containerview.tag = 1234;  -(ibaction)handletap:(uitapgesturerecognizer*)recognizer  {       if(recognizer.view.tag != 1234)       {            //hide container view       }  } 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -