- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我的应用程序适用于 iPad,使用带有两个场景的 Storyboard。在一个场景中,我有一个包含 UIVIew 的 UIScrollView。它滚动,但立即弹回,使自己变得无用。 UIScrollView 的大小为 768x590; UIView 的大小为 768x1590; UIScrollView 的 ContentSize 是 768x590。这是 UIScrollView 设置的图像:
(在过去的 6 个小时里,我查看了 SO 和 Google,尝试了很多东西,但没有任何效果。我也做了几次 CMD + Option + K(Clean),但这也没有帮助.
为什么不能正常滚动?
最佳答案
找到适合我的方法!
When you embed a view into a UIScrollView in InterfaceBuilder, then there's a constraint automatically set. If your view is "longer" than the screen in portrait, it wont scroll at all.
But if you rotate the screen, you'll notice the ability to scroll a little.
To get UIScrollView going in AutoLayout look into your constraints.
Find "Vertical Space - Scroll View - View" and set it from "constant" to "auto" - fixed everything for me.
感谢您的帮助...非常感谢。
关于ios - UIScrollView 里面的 UIVIew 弹回来,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13317829/
我有一个 View ,我正在以这样的方式对其进行动画处理,使其扩展并移动到 View Controller 中的一组新坐标。我正在使用关键帧执行此操作: UIView.animateKeyframes
我有一个以视频为背景的UIView。当我呈现另一个 subview ,然后弹回到包含视频的 subview 时,会发生这种情况: Video [11 seconds] (保留视频,因为 GIF 不具有
首先,这是一些代码: - (void)viewDidLoad { [super viewDidLoad]; FirstViewController *first = [[FirstVi
我是一名优秀的程序员,十分优秀!