After a legs catch you are hanging upside down in the catcher's arms. Arch your back up into the apron. As you swing back towards your bar, twist your body (the catcher will help) so that you are able to let go and grab your bar at the peak with your hands.
You can find out more about this trick in my books:
Thanks to Crystal, Bruno and Randy for providing videos for this page.