【发布时间】:2016-12-24 13:07:59
【问题描述】:
我正在使用带有 SDK 5.4.0GA 的 Appcelerator Studio 4.7。
我想使用向后滑动手势返回上一个视图控制器,但我的触摸只是移动了ScrollableView 视图,即使我在屏幕左边缘开始手势。如果没有结束,则向后滑动手势可以正常工作ScrollableView。
当我使用 Titanium Studio 3.4 时一切都很好。暂时无法使用,因为不支持,甚至无法登录。
这个问题是因为 Appcelerator Studio,而不是因为 SDK 版本。我曾尝试使用具有相同 SDK 版本的 Titanium Studio 和 Appcelerator Studio,但只有 Appcelerator Studio 有此问题。这就是我一年前坚持使用 Titanium Studio 的原因,但现在不可能了。
编辑。如何在 2 分钟内重现它:
1) 文件->新建->移动应用项目->默认合金项目
2) 添加名为 scrollable 的新控制器
scrollable.xml:
<Alloy>
<Window class="container">
<ScrollableView>
<ScrollView>
<View height="5000" backgroundColor="#DBD6D6">
<Label top="20">View1</Label>
</View>
</ScrollView>
<ScrollView>
<View height="5000" backgroundColor="#FED2FB">
<Label top="20">View2</Label>
</View>
</ScrollView>
<ScrollView>
<View height="5000" backgroundColor="#DCEFD7">
<Label top="20">View3</Label>
</View>
</ScrollView>
</ScrollableView>
</Window>
</Alloy>
index.js:
function doClick(e) {
var scrollableController = Alloy.createController('scrollable',{
});
var view = scrollableController.getView();
$.index.openWindow(view);
}
$.index.open();
index.xml:
<Alloy>
<NavigationWindow>
<Window class="container" id="index">
<Label id="label" onClick="doClick">Press me</Label>
</Window>
</NavigationWindow>
</Alloy>
3) 就是这样!
【问题讨论】:
标签: ios titanium appcelerator appcelerator-titanium appcelerator-alloy