jjzjj

UIViewControllerAnimatedTransitio

全部标签

ios - 如何实现类似Apple News App或Pinterest ios的放大效果

今天我发现AppleNewsApp和PinterestApp的放大效果,我想知道如何实现类似的效果。我读了Pinterest的博客https://engineering.pinterest.com/blog/behind-pins-building-pinterest-30-ios它说Todothis,weusedUINavigationControllerDelegate’sanimationControllerForOperationmethodtoprovideaUIViewControllerAnimatedTransitioningobjecttoperformthetran

iOS 7 - 带有 UIViewcontrollerAnimatedTransitioning 的模态弹出窗口

我正在尝试使用UIViewcontrollerAnimatedTransitioning为PopUpViewController呈现动画。我已经创建了一个从TableViewCell到我的Viewcontroller的ModalSegue在PopupPresentAnimationController(实现UIViewcontrollerAnimatedTransitioning)中我有-(void)animateTransition:(id)transitionContext{UIViewController*fromViewController=[transitionContext

ios - 当 UIViewController 呈现 UIViewControllerAnimatedTransitioning 并在 iOS8 中旋转时,UITabBarController 布局被破坏

我在iOS8中遇到旋转问题。在iOS7中,没问题。样本下载:https://www.dropbox.com/s/jr067r3jpzit10h/Rotation.zip?dl=0步骤如下。在XCode6中创建基于标签栏的iOS项目。在项目设置中设置设备方向以支持纵向、横向左、横向右。让标签栏Controller仅通过代码支持纵向。(shouldAutorotate返回true,supportedInterfaceOrientations返回UIInterfaceOrientationMask.Portrait)通过presentViewController:animated:compl

ios - UIViewControllerAnimatedTransitioning 在 iPhone X 上插入安全区域

当在转换委托(delegate)上调用animateTransition时,尚未在“toviewcontroller”上设置SafeAreaInsets。我尝试通过调用以下方法强制布局:toViewController.view.setNeedsLayout()和toViewController.view.layoutIfNeeded()但没有成功。任何人都可以建议一种方法来强制提前设置安全区域插图或确定我应该如何及时知道插图以使过渡正常工作。效果是我有一个UICollectionViewCell,一旦转换完成,它就会向下移动。这是因为框架最初有一个0,0原点,而不是在iPhoneX上

ios - UIViewControllerAnimatedTransitioning 与 MPMoviePlayerViewController

我正在尝试制作自定义演示动画,但VC是一个MPMoviePlayerViewController。我正在学习本教程:当我呈现MPMoviePlayerViewController时,一切正常。但是当我忽略它时,简单的方法是:-(id)animationControllerForDismissedController:(UIViewController*)dismissed没有被调用,我做错了什么?这是代码:-(IBAction)playButtonTouchedIn:(id)sender{NSURL*url=[[NSBundlemainBundle]URLForResource:@"L

ios - presentViewController 在 IOS 8 中闪烁

在iOS7中,我们做了一个自定义动画转换到一个新的ViewController,动画的完成是:[self.animatedViewremoveFromSuperview];//superview==self.view,inthiscase[selfpresentViewController:newControlleranimated:NOcompletion:nil];这在 最佳答案 真的建议您应该为iOS7及更高版本采用UIViewControllerAnimatedTransitioning协议(protocol)。它易于使用,

iOS swift : UIViewControllerAnimatedTransitioning end frame in wrong position

我有一个Swift项目,正在学习天气API并试图更好地处理AnimatedTransitions。我有一个UITableView使用带有图像和文本的自定义UITableViewCell。点击tableView中的单元格会转换为新的UIViewController作为显示(推送),整个内容嵌入到UINavigationController中。当调用转换时,单元格中的图像应该移动到目标viewController上UIImageView的最终位置。然而,它所做的是在转换完成之前移动到屏幕的另一边,然后View发生变化,使图像看起来像快速回到View的中心。我阅读了很多试图解决这个问题的教程

ios - UIViewControllerAnimatedTransitioning 与自定义 UIStoryboardSegue

自定义过渡对我来说相当陌生。我不得不将它们合并到我工作的最后一个项目中,并最终使用UIViewControllerAnimatedTransitioning协议(protocol)和自定义segues。自定义segues看起来更简洁/友好,因为您可以在Storyboard中选择它们并完成它。然而,似乎没有一种友好的方式来设置back/popsegue。我读过关于展开segues的文章,但我似乎找不到任何关于将一个segues绑定(bind)到导航Controller的后退按钮的信息。UIViewControllerAnimatedTransitioning协议(protocol)方法有

ios - UIViewControllerAnimatedTransitioning 与自定义 UIStoryboardSegue

自定义过渡对我来说相当陌生。我不得不将它们合并到我工作的最后一个项目中,并最终使用UIViewControllerAnimatedTransitioning协议(protocol)和自定义segues。自定义segues看起来更简洁/友好,因为您可以在Storyboard中选择它们并完成它。然而,似乎没有一种友好的方式来设置back/popsegue。我读过关于展开segues的文章,但我似乎找不到任何关于将一个segues绑定(bind)到导航Controller的后退按钮的信息。UIViewControllerAnimatedTransitioning协议(protocol)方法有

ios - 如何在 UINavigationController 中使用 UIViewControllerAnimatedTransitioning?

将ViewController推送到UINavigationController时如何获得自定义转换(iOS7)?我尝试在UINavigationController和我正在推送的Controller上设置TransitioningDelegate这些方法永远不会被调用。我发现的所有示例在模态呈现时都使用自定义过渡。 最佳答案 @rounak的想法是正确的,但有时无需从github下载就可以准备好代码。以下是我采取的步骤:使您的FromViewController.m符合UINavigationControllerDelegate。