uikit-transitions

Using a ContainerViewController, how do i add an interactive animation between child ViewControllers?

雨燕双飞 提交于 2019-12-24 11:50:43
问题 I'm trying to create a customized NavigationViewController where the Navigation bar is a swipeable bar at the top that controls the transitions (think UITabBarController but with swipe gestures not buttons). Here is a quick mockup. I apologize for the crudeness I have the header bar set up as a ScrollView. I have been able to successfully detect the scroll amount using the scrollViewDidScroll method. So I have the header bar portion rigged up. I now need to implement the transition movement

How to make custom transition for iOS7 that are compatible with iOS8?

与世无争的帅哥 提交于 2019-12-14 02:39:57
问题 I want to create a custom transition for my view controllers. I have begun to gather some information about the new API introduced in iOS7 . But I have been told that this API somehow changed in iOS8 . The video 214 of WWDC 2014 tackles this point. And some people told me that the custom transitions they created for iOS7 don't work properly on iOS8 (see for instance here and also there). So my question: Could you give some general advice, a guideline, for creating a custom transition that has

iOS: How to animate a flip between two UIViews?

心不动则不痛 提交于 2019-12-14 00:27:42
问题 I am trying to animate a flip effect between a UIButton instance and a UIImageView instance. Basically it's a "flip over a playing card" effect, one side (UIImageView) is just a nice pattern and when flipped, it should show a UIButton with some text. My code features the following problems: the text of the UIButton sub-view is not shown after flipping the shadow disappears during the flip animation Here's a visual representation of the goal: Here you can download the very simple sample app.

iOS: How to animate a flip between two UIViews?

本小妞迷上赌 提交于 2019-12-04 18:15:06
I am trying to animate a flip effect between a UIButton instance and a UIImageView instance. Basically it's a "flip over a playing card" effect, one side (UIImageView) is just a nice pattern and when flipped, it should show a UIButton with some text. My code features the following problems: the text of the UIButton sub-view is not shown after flipping the shadow disappears during the flip animation Here's a visual representation of the goal: Here you can download the very simple sample app. Any suggestions how to solve the two mentioned issues ? I am really out of ideas - any help highly

UIPresentationController changes size when another view controller is displayed on top of it

白昼怎懂夜的黑 提交于 2019-11-29 14:48:43
问题 I am presenting a modal view controller using UIPresentationController. I am setting the frame of presentedView less than the containView's bounds using following method: override func frameOfPresentedViewInContainerView() -> CGRect { let myDX = (self.containerView!.bounds.width - 600)/2 let myDY = (self.containerView!.bounds.height - 600)/2 return self.containerView!.bounds.insetBy(dx: myDX, dy: myDY) } Everything works great unto this point. Now, I present another view controller modally