如何在 CollectionView 中添加 SearchBar? [英] How to add SearchBar in CollectionView?

查看:20
本文介绍了如何在 CollectionView 中添加 SearchBar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试添加标题 SearchBar CollectionView,但出现错误:

<块引用>

非法配置:连接searchBar"不能有原型对象作为其目的地.

解决方案

像这样排列您的视图及其相关的委托方法.

Trying to add a header SearchBar CollectionView, but get an error:

Illegal Configuration: Connection "searchBar" cannot have a prototype object as its destination.

解决方案

arrange your view like this, and its related delegate methods.

这篇关于如何在 CollectionView 中添加 SearchBar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆