草庐IT

webkit-animation

全部标签

ios - UIWindow endDisablingInterfaceAutorotationAnimated : error

当用户在MFMailComposerViewController中并按下Home按钮时,我收到以下错误:[UIWindowendDisablingInterfaceAutorotationAnimated:]calledon>withoutmatching-beginDisablingInterfaceAutorotation.Ignoring.我看了看论坛,其他一些人在不同情况下遇到过这个错误,但没有解决方案。我已经在应用程序的所有ViewController中将shouldAutorotate设置为此:-(BOOL)shouldAutorotateToInterfaceOrient

ios - 无法向服务 com.apple.WebKit.WebContent 发送信号

我使用适用于iOS的ShopifyMobileBuySDK,但我无法从他们的支付WebView中获得回调。由于某种原因,警告:2016-11-2521:17:25.945267Drool[3328:799969]Couldnotsignalservicecom.apple.WebKit.WebContent:113:Couldnotfindspecifiedservice2016-11-2521:17:25.977316Drool[3328:799969]Couldnotsignalservicecom.apple.WebKit.Networking:113:Couldnotfinds

ios - drawViewHierarchyInRect :afterScreenUpdates: delays other animations

在我的应用程序中,我使用drawViewHierarchyInRect:afterScreenUpdates:来获取我的View的模糊图像(使用Apple的UIImage类别UIImageEffects)。我的代码是这样的:UIGraphicsBeginImageContextWithOptions(self.view.bounds.size,NO,0);[self.viewdrawViewHierarchyInRect:self.view.boundsafterScreenUpdates:YES];UIImage*im=UIGraphicsGetImageFromCurrentIma

ios - UIView.animate - Swift 3 - 完成

我如何在Swift3中做一个简单的完成block?我想在动画完成时设置self.isOpen=true:UIView.animate(withDuration:0.25,delay:0.0,options:[],animations:{self.isOpen=trueself.drawerView?.frame=CGRect(x:0,y:0,width:(self.drawerView?.frame.size.width)!,height:(self.drawerView?.frame.size.height)!)self.contentView?.frame=CGRect(x:200

ios - 在 iOS 4.0 中,为什么 UIScrollView zoomToRect :animated: not trigger the scrollViewDidScroll or scrollViewDidZoom delegates while animating?

我需要密切监视ScrollView的比例,以便我可以根据ScrollView的动画缩放更新内容View的元素(管理多个CALayers的subview)。在iOS3.1上,一切都按预期工作,我使用zoomToRect:animated:和UIScrollViewDelegate的scrollViewDidScroll:消息在动画发生时被重复调用,让我根据实际缩放更新subview元素。iOS4.0上的相同代码不会表现出相同的行为。当我调用zoomToRect:animated:时,委托(delegate)(scrollViewDidScroll:和scrollViewDidZoom)只

ios - [UICollectionView setCollectionViewLayout :animated:] 上的错误访问

我的UICollectionView出现奇怪的崩溃。崩溃的UICollectionView嵌入到另一个UICollectionView的UICollectionView单元中。我无法重现该问题,如果内部UICollectionView重新初始化,有时似乎会发生这种情况,因为外部CollectionView正在重新加载它的单元格。com.apple.main-threadCrashed0libobjc.A.dylibobjc_msgSend+91UIKit-[UICollectionViewData_setLayoutAttributes:atGlobalItemIndex:]+602U

ios - 使用 presentViewController :animated:completion: in iOS 8 时 presentingViewController 为 nil

想知道最近是否有其他人遇到过这个问题......对于我的一个ViewController,仅在iOS8上,在调用presentViewController:animated:completion:之后,呈现的ViewController将self.presentingController设为nil。在iOS7上没问题,在另一个ViewController上也不会发生。documentation说应该设置它,只要呈现的ViewController是模态呈现的。鉴于它适用于iOS7,这可能是iOS8的错误吗?我已经能够使用View容器包含方法绕过它,但如果有人以前见过这个并且知道触发此行为

iphone - 正确使用 transitionFromViewController :toViewController:duration:options:animations:completion:

我似乎找不到关于如何正确使用transitionFromViewController:toViewController:duration:options:animations:completion:的好例子。这是正确的吗?(假设我想用另一个VC交换)//AssumefromVCandtoVCviewcontrollersaredefinedandfromVCisalreadyaddedasachildviewcontroller[selfaddChildViewController:toVC];[selftransitionFromViewController:fromVCtoView

css - Webkit 动画在屏幕上留下垃圾像素

以下代码在屏幕上放置了一个白框。如果您在iPad上运行它(您也可以调整像素以在iPhone上运行它),当您触摸该框时,它会快速离开屏幕,并在其底部边缘留下白色像素痕迹。LineBugDemobody{background:black;}.panel{background:white;position:absolute;z-index:2;width:1000px;height:500px;top:34px;left:12px;-webkit-border-radius:20px;-webkit-transition:left0.333sease-in-out;}.panel.hide{

ios - com.apple.WebKit.WebContent 掉落 113 错误 : Could not find specified service

我正在使用WKWebView查看自定义HTML。无论HTML内容如何,​​在真实设备上进行测试时,我都会在Couldnotsignalservicecom.apple.WebKit.WebContent:113:Couldnotfindspecifiedservice后的29秒内收到以下错误WKWebView内容已加载,有时我什至两次收到此错误。很明显,这是一个配置问题。我已经按照Couldnotsignalservicecom.apple.WebKit.WebContent中的建议检查了cookie,然而这并没有帮助另一个问题是是否存在WKWebView中可能弹出的所有错误代码的列表