unsigned int count = 0;
Ivar *members = class_copyIvarList([UISearchBar class], &count);
for (int i = 0 ; i < count; i++) {
Ivar var = members[i];
const char *memberName = ivar_getName(var);
const char *memberType = ivar_getTypeEncoding(var);
Ivar m_name = members[2];
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
object_setIvar(_search, m_name, button);
[button setTitle:@"确认" forState:UIControlStateNormal];
NSLog(@"%s----%s", memberName, memberType);
}