Latest 1.0.4
Homepage https://github.com/lincf0912/LF_iOS7SearchBar
License MIT
Platforms ios 7.0, requires ARC
Authors
  • 自定义搜索栏,模仿iOS7的搜索栏(UITextField+UIView)

Installation 安装

  • CocoaPods:pod ‘LF_iOS7SearchBar’
  • 手动导入:将LF_iOS7SearchBarclass文件夹拽入项目中,导入头文件:#import "LF_iOS7SearchBar.h"

调用代码

LF_iOS7SearchBar *searchBar = [[LF_iOS7SearchBar alloc] initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 44.f)];
searchBar.placeholder = @"搜索";
[searchBar setShowsCancelButton:YES animated:YES];
// 代理
searchBar.delegate = self;

图片展示

image

Latest podspec

{
    "name": "LF_iOS7SearchBar",
    "version": "1.0.4",
    "summary": "LF_iOS7SearchBar, Custom SearchBar like iOS7's UISearchBar",
    "homepage": "https://github.com/lincf0912/LF_iOS7SearchBar",
    "license": "MIT",
    "authors": {
        "lincf0912": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/lincf0912/LF_iOS7SearchBar.git",
        "tag": "1.0.4",
        "submodules": true
    },
    "requires_arc": true,
    "resources": "LF_iOS7SearchBar/class/*.bundle",
    "source_files": "LF_iOS7SearchBar/class/*.{h,m}",
    "public_header_files": "LF_iOS7SearchBar/class/*.h"
}

Pin It on Pinterest

Share This