简体   繁体   English

iOS自定义可滚动标签视图,如android

[英]iOS custom scrollable tab view like in android

I want to realize iOS tab view like in android (Look at screenshot below) 我想像在android中一样实现iOS标签视图 (请看下面的屏幕截图)
Is there any ready open source iOS libraries doing this? 有没有现成的开源iOS 正在执行此操作?

在此处输入图片说明

You want a UITabBarController to make use of the tabbing functionality (traditionally iOS tabs appear at the bottom of the screen, not the top as in Android), and within each tab you want to provide a scrollable view, which in iOS is called a UIScrollView . 您希望UITabBarController使用制表功能(传统上,iOS选项卡显示在屏幕的底部,而不是Android中的顶部),并且您希望在每个选项卡中提供一个可滚动的视图,在iOS中称为UIScrollView

You should go down this route, of implementing with the native UITabBarController and UIScrollView , as these will give a native iOS look. 您应该走这条路线,使用本机UITabBarControllerUIScrollView ,因为它们将赋予本机iOS外观。 If you try and make it look too much like the Android version it will look like an Android app, which is against the iOS view guidelines. 如果尝试使它看起来太像Android版本,那么它将看起来像一个Android应用程序,这违反了iOS视图准则。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM