导入
#import <objc/runtime.h>
unsigned int count;
method *methods = class_copymethodlist([uialertaction class], &count);
for (int i = 0; i < count; i++) {
method method = methods[i];
sel selector = method_getname(method);
nsstring *name = nsstringfromselector(selector);
nslog(@"method_getname:%@",name);
}
unsigned int numivars;
ivar *vars = class_copyivarlist([uialertaction class], &numivars);
nsstring *key=nil;
for(int i = 0; i < numivars; i++) {
ivar thisivar = vars[i];
key = [nsstring stringwithutf8string:ivar_getname(thisivar)];
nslog(@"variable_name :%@", key);
}
free(vars);
如对本文有疑问, 点击进行留言回复!!
Codeforces Round #657 (Div. 2) C题
hdu2222 Keywords Search(ac自动机模板-kuangbin)
IOS开发控件视图day08:监听文本框状态设置按钮状态不可点击且变灰
网友评论