我有一个我在UISearchBar下面附加了一个自定义视图,它提供了一些用于过滤和排序的按钮......现在我想使用 ios11 UISearchController,它提供了一个可以平滑地隐藏到顶部导航栏中的搜索栏。我环顾四周并测试了一些东西,但无法正确解决。向上滚动时,自定义视图也应该隐藏。
任何提示或任何我可以阅读的内容来掌握这个?(我对ios开发比较陌生)
我正在学习Android,同时做一些工作.我正在尝试将应用程序的版本更新为Android 8.0,其中包括使用的sdk,库和外部API.
我查了一下,似乎15.0.1是建议的版本.但是当我使用它时,gradle失败play-services-analytics并且firebase服务同步说它无法解析库,如果按下Install Repository也无法找到存储库.
所以目前我正在使用12.0.1版本来播放服务和firebase服务.使用它像:
implementation 'com.google.android.gms:play-services-maps:12.0.1'
implementation 'com.google.android.gms:play-services-analytics:12.0.1'
implementation 'com.google.android.gms:play-services-ads:12.0.1'
implementation 'com.google.android.gms:play-services-auth:12.0.1'
implementation 'com.google.android.gms:play-services-gcm:12.0.1'
implementation 'com.google.firebase:firebase-core:12.0.1'
implementation 'com.google.firebase:firebase-analytics:12.0.1'
implementation 'com.google.firebase:firebase-crash:12.0.1'
implementation 'com.google.firebase:firebase-messaging:12.0.1'
implementation 'com.android.support:support-v4:27.1.0'
implementation 'com.android.support:appcompat-v7:27.1.0'
Run Code Online (Sandbox Code Playgroud)
但是,如果我尝试仅使用play-services除分析之外的15.0.1,那么它会给我另一个警告,即使用不同版本的播放服务和firebase服务可能会导致运行时崩溃.
所以它让我处于一个奇怪的境地,我用Google搜索和搜索,但无法找到任何对我有用的东西......在这里处理这个问题的正确方法是什么?我应该满足于12.0.1吗?或更新有用的东西?(之前的版本是9.4.0或类似的东西;在我进行Android 8.0升级之前)
编辑:这些是我的顶级gradle依赖项
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:4.0.2'
Run Code Online (Sandbox Code Playgroud)