Latest 1.0.1
Homepage https://github.com/LYajun/YJSearchController
License MIT
Platforms ios 8.0, requires ARC
Dependencies Masonry, LGAlertHUD, YJExtensions
Authors

搜索

使用方式

1、集成:

pod 'YJSearchController'

2、配置


/** 搜索按钮的Y坐标,默认100 */
@property (nonatomic, assign) float presentOffsetY;
/** 搜索关键字 */
@property (copy, nonatomic) NSString *searchStr;
/** 可搜索的相关内容 */
@property (nonatomic,strong) NSArray *searchMatchArray;
/** 启动搜索视图的控制器名 */
@property (copy, nonatomic) NSString *searchControllerName;

/** 搜索输入内容 */
@property (nonatomic,copy) void (^searchStrBlock) (NSString *searchStr);

3、使用


[YJSearchManager defaultManager].searchStr = @"还";
[YJSearchManager defaultManager].searchControllerName = NSStringFromClass(self.class);
[YJSearchManager defaultManager].searchMatchArray = @[@"searchMatc还是欧吉桑hArray",@"sea不错rc33hMatc还是欧吉桑hArray",@"searchMatc还是欧吉桑hArray",@"sea英语rch1Matc还是欧吉桑hArray"];
[YJSearchManager defaultManager].searchStrBlock = ^(NSString * _Nonnull searchStr) {
        NSLog(@"%@",searchStr);
    };
[[YJSearchManager defaultManager] presentSearchControllerBy:self];

Latest podspec

{
    "name": "YJSearchController",
    "version": "1.0.1",
    "summary": "u641cu7d22",
    "homepage": "https://github.com/LYajun/YJSearchController",
    "license": "MIT",
    "authors": {
        "u5218u4e9au519b": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/LYajun/YJSearchController.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "YJSearchController/Base/*.{h,m}",
        "YJSearchController/Main/*.{h,m}",
        "YJSearchController/Match/*.{h,m}",
        "YJSearchController/Public/*.{h,m}",
        "YJSearchController/Record/*.{h,m}"
    ],
    "resources": "YJSearchController/YJSearchController.bundle",
    "requires_arc": true,
    "dependencies": {
        "Masonry": [],
        "LGAlertHUD": [],
        "YJExtensions": []
    },
    "subspecs": [
        {
            "name": "PinYin",
            "source_files": "YJSearchController/PinYin/*.{h,m}"
        }
    ]
}

Pin It on Pinterest

Share This