Thursday, January 10, 2013

MTPopupWindow has a new delegate protocol

MTPopupWindow has a new delegate protocol

First of all: Happy New Year to everyone!

This post will be just a short announcement, that Dylan Crocker ( https://github.com/nalyd88 ) added a couple of features to MTPopupWindow on github.

The pull request from Dylan included as follows:

  • usesSafari property on MTPopupWindow, which redirects all links to the Safari app (useful if you include lots of links, which should open in their original context)
  • a delegate property – you can now set a delegate object for your popup window and handle different popup events

The merge also added the MTPopupWindowDelegate protocol:

  • willShowMTPopupWindow: called just before the window animates in
  • didShowMTPopupWindow: called after the window animates in
  • willCloseMTPopupWindow: before the window animates out
  • didCloseMTPopupWindow: after the window animates out

Thanks Dylan!

The post was originally published on the following URL: http://www.touch-code-magazine.com/mtpopupwindow-is-new-delegate-protocol/

  ·



Source : touch-code-magazine[dot]com

0 comments:

Post a Comment