Add present and dismiss blocks to block-based alerts and actionsheets.