Skip to content

Latest commit

 

History

History
26 lines (12 loc) · 573 Bytes

README.md

File metadata and controls

26 lines (12 loc) · 573 Bytes

App Store's "Add to Wish List" animation

Example

image

Usage

Import the category into your .m file:

#import "UIBarButtonItem+WishListAnimation.h"

Then create your UIBarButtonItem:

    self.navigationItem.rightBarButtonItem = 
    	[UIBarButtonItem wlBarButtonWithImage:buttonImage target:self action:@selector(addToWishList:)];

Now just animate it using:

[self.navigationItem.rightBarButtonItem wishListAnimationWithImage:iconImage completionBlock:nil];

Enjoy.