Hi this is Marin - the author of Touch Code Magazine, I hope you are enjoying my tutorials and articles. Also if you need a bright iPhone developer overseas contact me - I do contract work. Here's my LinkedIn profile
You can clone this project from GitHub!
You follow the tutorial to understand how and why the code has been written, but still download the complete project from GitHub! Also in the repo you might find further modifications of the project, answering questions in the post's comments and much more! Download now from https://github.com/icanzilb/MTPopupWindow
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/

 

  ·

 


You can clone this project from GitHub!
You follow the tutorial to understand how and why the code has been written, but still download the complete project from GitHub! Also in the repo you might find further modifications of the project, answering questions in the post's comments and much more! Download now from https://github.com/icanzilb/MTPopupWindow

Marin Todorov

is an independent iOS developer and publisher. He's got more than 18 years of experience in a dozen of languages and platforms. This is his writing project.
» Contact    » Add Marin on Google+