UIAnimatedSearchBar
描述
UIAnimatedSearchBar与标准的UISearchBar类似,但增加了搜索玻璃的动画。我已经尝试添加与UISearchBar相同的函数功能。取消按钮和书签按钮都可以像UISearchBar一样添加。此外,还有一个UIAnimatedSearchBarDelegate,它提供与UISearchBarDelegate相同的功能。
示例
要运行示例项目,请克隆仓库,然后首先从示例目录运行 pod install
。
需求
部署目标: 11.0
安装
UIAnimatedSearchBar 可通过 CocoaPods 获得。要安装它,只需将以下行添加到您的 Podfile 中
pod 'UIAnimatedSearchBar'
在 podfile 的末尾添加此 post_install,以允许 UIAnimatedSearchBar 的 @IBDesignable 属性工作
# Workaround for Cocoapods v.1.5 issue #7606
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end
UIAnimatedSearchBar 可以使用 Interface Builder 添加,也可以通过代码完成。
作者
Kyle Burkholder
电子邮件:[email protected]
Twitter:_KyleBurkholder
在 Twitter 上关注我。我很想看看其他 iOS 开发者正在做什么。
捐赠
我是一个自学成才的 iOS 程序员,如果您想看到更多这样的东西,请随意买我一杯或两杯咖啡。;)
许可证
UIAnimatedSearchBar 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。