ios - UI not responding when popover is presented -
i have 2 buttons button1 , button2. popover presented when tap on button1. when popover presented, if tap on button2, not respond tap action instead popover dismissed. need is, when tap on button2, need dismiss pop on , button2's action should performed. how can simultaneously. please give me suggestions. in advance.
as per default behaviour of uipopovercontroller, dismissed when user taps outside of popover. following notes apple documentations :
the uipopovercontroller class used manage presentation of content in popover. use popovers present information temporarily. popover content layered on top of existing content , background dimmed automatically. popover remains visible until user taps outside of popover window or explicitly dismiss it. popover controllers use exclusively on ipad devices. attempting create 1 on other devices results in exception.
if want perform action when want tap on button 2, easiest way move button 2 on top of popover content. way can explicitly dismiss popover when user taps on button 2 , perform custom action there itself.
Comments
Post a Comment