add convenient methods to get an instance with block

I added convenient methods to get an instance with block to UIBarButtonItem