草庐IT

auto-scroll

全部标签

ios - IB Designables : Failed to render and update auto layout status for Google Maps

我在我的项目中使用GoogleMapsPod。我的Storyboard之一有错误:error:IBDesignables:FailedtorenderandupdateautolayoutstatusforMapViewController:dlopen(GoogleMaps.framework,1):nosuitableimagefound.Didfind:GoogleMaps.framework:mach-o,butwrongfiletype我已将View类设置为GMSMapView:应用程序正在模拟器上运行。我该如何解决这个错误?它会导致整个Storyboard为空白。

html - -webkit-overflow-scrolling 是否适合生产使用?

我一直在使用-webkit-overflow-scrolling在iOS上平滑滚动叠加导航菜单,但是,我一直在与一个错误作斗争(我似乎无法找到回答任何地方)。查看MDN站点上的属性:Thisfeatureisnon-standardandisnotonastandardstrack.DonotuseitonproductionsitesfacingtheWeb:itwillnotworkforeveryuser....https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-overflow-scrolling如果它“不在标准轨道

ios - Auto Layout iOS 7 - 无法将 subview 的右侧与 UIScrollView 的右侧对齐

我正在以编程方式构建View并使用自动布局,根本没有界面构建器。在自定义ScrollViewController中,我添加了一个UILabel和一个UIButton作为subview。我想将标签对齐到屏幕左侧,按钮对齐到屏幕右侧。出于某种原因,我的按钮只对齐到我的ScrollView的左侧。我精简了我的代码,现在只有这两个标签,但我不明白为什么它不会右对齐。HWScrollViewController.m(我如何初始化主ScrollView)-(void)loadView{self.scrollView=[[UIScrollViewalloc]initWithFrame:[[UIScr

ios - 代码/iOS : How to hide Navigation- AND ToolBar on scroll down?

我想在我的iPhone上向下滚动时隐藏两个栏。当我向上滚动时,它们应该会再次出现。我该如何处理? 最佳答案 -(void)scrollViewWillBeginScroll:(UIScrollView*)scrollView{if(scrollView.contentOffset.y注意:lastOffset是一个CGPoint,它在您的头文件中:@Interface。 关于ios-代码/iOS:HowtohideNavigation-ANDToolBaronscrolldown?,我们

ios - Keith Clark 的 CSS Parallax Inertial/Momentum Scrolling on Mobile

所以我用KeithClark'spureCSSparallax建立了一个网站主意。它看起来不错,但我很好奇是否有人想出如何在iOS上允许惯性/动量滚动。Hereismysitesofar.目前我所知道的:目前惯性/动量滚动不起作用,因为基本上整个页面都保存在一个带有overflow-y:auto的容器中。因此,当您在页面上滚动时,您是在一个容器内滚动。在iOS上,您必须应用-webkit-overflow-scrolling:touch以允许非视口(viewport)滚动的任何内容具有惯性/动量滚动。如果将-webkit-overflow-scrolling:touch添加到.para

ios - Auto property synthesize will not synthesize property - 新警告 iOS8.3

更新到iOS8.3后,我开始收到一堆在iOS8.2上没有的新警告。其中一个特别引起了我的注意;@property(strong,nonatomic)IBOutletUITableView*tableView;这是在“.m”文件中声明的。在iOS8.3中有什么变化使它成为一个警告?Autopropertysynthesiswillnotsynthesizeproperty'tableView';itwillbeimplementedbyitssuperclass,use@dynamictoacknowledgeintention 最佳答案

iOS >> 拖动 View 跳回原始位置 >> Auto Layout 结合 UIPanGestureRecognizer 问题

我有几个用户应该能够拖放的UIView。我使用UIPanGestureRecognizer来管理d&d操作(参见下面的代码)。d&dAction运行良好,但是当我开始拖动另一个UIView时,我刚刚放下的那个UIView正在跳回其原始位置。-(void)handlePan:(UIPanGestureRecognizer*)recognizer{CGPointtranslation=[recognizertranslationInView:self.view];switch(recognizer.state){caseUIGestureRecognizerStateBegan:for(U

iOS5 -webkit-overflow-scrolling 导致触摸事件停止工作

当使用[-webkit-overflow-scrolling:touch;]时,滚动区域效果很好,但它会导致触摸事件停止滚动区域之外的工作。有没有人有同样的问题?谁能给我一些关于这个新滚动功能的官方链接?ios5scrollheader{background:red;width:300px;height:44px;}.scroll{width:300px;height:300px;background:yellow;overflow:scroll;-webkit-overflow-scrolling:touch;}won'twork?Itworkstexttexttexttexttex

ios - 为什么我现在每次启动应用程序时都会收到 "Auto Layout still required after executing -layoutSubviews"错误?

由于我添加了以下代码,每次我的应用程序打开此UITableViewController时都会崩溃:self.noArticlesView=[[UIViewalloc]init];self.noArticlesView.translatesAutoresizingMaskIntoConstraints=NO;self.noArticlesView.backgroundColor=[UIColorcolorWithRed:0.961green:0.961blue:0.961alpha:1];[self.viewaddSubview:self.noArticlesView];[self.vi

ios - `-webkit-overflow-scrolling: touch` 因 iOS7 中的初始屏幕外元素而损坏

既然转基因种子已经放出来了,我们可以好好谈谈了!看起来在iOS7中“-webkit-overflow-scrolling:touch”被破坏了。最初不在屏幕上的元素的触摸事件不会触发(或者在某些情况下只是不可靠)。这是一个例子:TEST#scrollbox{position:fixed;top:0px;width:100%;height:100%;overflow:scroll;-webkit-overflow-scrolling:touch;}.touchDiv{position:relative;width:100%;height:80px;background-color:#FF