Search code examples
iphoneobjective-ciosuiviewuitoolbar

Sharing feature recreation with UIToolbar


I'm currently trying to recreate the sharing feature seen in Hacker News in the AppStore.

Screenshots here and here.

I know that they use a UIToolbar, and when the user taps the Share-Button, they somehow move the view up and show another view under the UIToolbar. But I have no idea, how they:

  1. Move the view up
  2. And then show another view.

Do you have any pointers or code samples for me? It would be very appreciated.


Solution

  • Check out UIView animations. Just add the sharing view below the visible screen, then create an animation that slides both your new view and the view above it up into position. There is plenty of sample code for view animations on SO.