facebook-pop

Create an endless animation with pop?

我与影子孤独终老i 提交于 2019-12-25 03:45:37
问题 When using the Coreanimation framework I can set an animation to repeat. I want to set a button to an "attract attention" mode which should make him grow and shrink by a small amount to get the users attention. I already chained the grow and shrink animations via completion blocks. The question is if and how I can start the first animation from the second animation's completion block. I do get the following warning which does make sense. What is an elegant solution to this problem? I'm not a

How to add facebook open source code pop to project directly

一世执手 提交于 2019-12-21 05:21:47
问题 I have downloaded the facebook open source code pop from github. But all header files are imported like this: #import <POP/POPAnimatableProperty.h> . What should I to do with project setting to support import file like this in my project. I know that I can run it by replace all #import <POP/XXX.h> with #import XXX.h but I'd to use the open source like the pop sample project. 回答1: Through learning cocoapod project, I have got how to config project. Config pop file path to system path, then I

Centering Modal View with Autolayout

我们两清 提交于 2019-12-04 18:33:18
问题 I'm presenting a UIViewController using presentViewController and a custom modalPresentationStyle, in an effort to implement a Facebook POP animated transition. The modal view itself is completely dynamic, defined using Autolayout constraints in code. There is no xib/storyboard to back the modal. I can't get the modal view to center on screen! Autolayout isn't sufficient, because there is no superview to add constraints on! My presenting code looks like this (taken from a FB POP code sample):