Add dismiss handler block, fix some error for Objc demo

Hi！@toblerpwn  @gaurvw