草庐IT

untitled-animations

全部标签

ios - presentViewController:animated:NO 简要展示了 iOS 8 中的呈现 Controller 。备选方案?

通常在应用启动期间创建您的主UI结构,但如果用户在应用启动期间未登录,则在正常UI上方立即显示模态介绍/登录屏幕。通常情况下,使用presentViewController:animated:NO呈现模态UI没问题,因为用户会看到:AppLaunchImage->LoginUI。但是,在iOS8上,调用presentViewControllerwithanimated=NOstill似乎会在呈现ViewController之前简要显示框架的底层ViewController。例子:我不想首先显示登录UI,因为当用户登录时,我会显示登录UI中的主UI,从而使登录UI保持在层次结构中无限期。

ios - CGAffineTransformMakeScale animation on a cornerRadius rounded UIButton

我正在舍入一个UIBUtton,这很好(self是一个uibutton子类):self.layer.cornerRadius=self.frame.size.width/2;self.layer.masksToBounds=YES;self.clipsToBounds=YES;但我也在尝试为按钮设置动画以缩小比例然后返回到原始大小,如下所示:[UIViewanimateWithDuration:0.1delay:0.0options:UIViewAnimationOptionCurveEaseInOutanimations:^{self.layer.affineTransform=CG

ios - [self.navigationController popToViewController :VC2 animated:NO]; crash

您好,我正在开发一个我应该去的应用程序:从UIViewController1到UIViewController2从UIViewController2到UIViewController3从UIViewController3到UIViewController4从UIViewController4回到UIViewController2我正在使用UINavigationController。当我使用[self.navigationControllerpushViewController:VC2animated:NO];和[self.navigationControllerpopViewCont

ios - dismissViewControllerAnimated : not animating

我正在使用SVWebViewController.当我在这里展示ViewController时SVModalWebViewController*webViewController=[[SVModalWebViewControlleralloc]initWithAddress:address];webViewController.webDelegate=self;[selfpresentViewController:webViewControlleranimated:YEScompletion:nil];ViewController如预期的那样从底部向上滑动。然而,当ViewContro

ios - 使用 Core Animation 图层绘制圆锥形或弧形渐变

我需要绘制一条圆形线并使用CoreAnimation用渐变填充这条线。这不是主要问题,因为我使用的是CAGradientLayer并使用CAShapeLayer对其进行屏蔽。问题是梯度应该像this中看到的那样线。已经有很多解决方案,但让我解释一下为什么它们对我不起作用:-我不能使用图像,因为我需要为CAGradientLayer的位置属性数组设置动画-我没有使用CoreGraphics来绘制所有内容,因为正如我所说,我尝试绘制的这个圈子中的几乎所有内容都应该是可动画的。-类(class)可用here是一个可能的解决方案,但不是最优的,因为它需要为我需要绘制的每个圆圈创建一个新View

iOS UITableViewCell setSelected :animated: always has animated = NO

我正在尝试制作自己的选择动画。我已经创建了UITableViewCell的子类。我在-setSelected:animated:方法中制作我的选择动画。当您通过点击选择或取消选择单元格时,它会按预期工作。问题是在滚动期间也会看到动画,因为-setSelected:animated:在每个单元格出现之前被调用。这就是重用单元格机制的工作原理,我明白了。我不明白的是,它总是在点击或滚动时使用animated=NO调用此方法。这对我来说似乎是一个逻辑错误。我假设它应该在您点击它们时选择带有动画的单元格,而在出现重复使用的单元格时选择没有动画的单元格。除了手动调用之外,animated参数是否

ios - 为什么setEditing :animated: and insertRowsAtIndexPaths: result in this weird editing style animation?

我有一个UITableView,我正在打开setEditing:animated:,以允许用户插入和删除行。打开编辑后,我希望将新的insertnewitem行添加到表中,然后我希望编辑控件像往常一样进行动画处理。我不希望新的insertnewitem行使用淡入淡出之类的东西自行设置动画。我希望它只出现,然后像任何现有表数据源行一样滑入。不过,这是我当前代码的结果(点击查看大图):顶行做了我想要的-它只是滑过并且删除图标淡入。当它消失时,删除图标淡出并且该行再次展开。第二行是我自己添加到表中的非数据源行。出现时,它根本没有动画。插入图标和行同时出现,不会滑入。当它消失时,行会很好地展开

ios - -webkit-animation-play-state 不适用于 iOS 8.1(可能也更低)

我有一个在页面加载时运行的动画,我使用javascript添加了一个包含的类-webkit-animation-play-state:paused;在OSXsafari和所有其他浏览器(甚至PC)上也能正常工作,但在移动设备上,只有在iOS上动画在调用时似乎不会暂停。这是关于动画状态如何运行和暂停的fiddle。http://jsfiddle.net/uc9c5/2/在iOS上试试,你会发现它完全被忽略了。 最佳答案 iOS8-9Safari使用-webkit-animation:none!important;而不是-webkit-

ios - 未捕获的异常 : CALayer position contains NaN when doing animation

当我在iPad上运行时,我的应用程序出现此错误:Uncaughtexception:CALayerpositioncontainsNaN相同的代码在iPhone上运行良好。-(void)mapView:(MKMapView*)mapViewdidAddAnnotationViews:(NSArray*)views{AnnotationView*aV;for(aVinviews){//Don'tpindropifannotationisuserlocationif([aV.annotationisKindOfClass:[MKUserLocationclass]]){continue;}

iphone - 使用 scrollToRowAtIndexPath 滚动到最后一个 UITableViewCell :atScrollPosition:animated using NSFetchedResultsControllerDelegate methods

我正在向UITableView的底部添加一个新项目,在插入该项目后,我希望UITableView滚动到最底部以显示新插入的项目。新项目保存到CoreData,UITableView使用NSFetchedResultsController自动更新。-(void)controller:(NSFetchedResultsController*)controllerdidChangeObject:(id)anObjectatIndexPath:(NSIndexPath*)indexPathforChangeType:(NSFetchedResultsChangeType)typenewInde