ios - How to implement a double tap gesture on tab bar item -
i developing music app client , need app following image.
however when user press middle button once need show full screen player , if user pressed button twice needs show mini audio player.
is there way ? if how ?
with tabbarcontrollerdelegate
can know if selected tab current tab, know can use - (bool)tabbarcontroller:(uitabbarcontroller *)tabbarcontroller shouldselectviewcontroller:(uiviewcontroller *)viewcontroller
in method can return no
tabbar not switch viewcontroller
(if use navigationcontroller tab bar popviewcontorller
when duble tap) , can show audio player.
this want?
Comments
Post a Comment