[iOS ] [[NSArray new] makeObjectsPerformSelector:@selector(#selector#)];

news/2024/7/20 22:49:12 标签: select, nsarray, ios
                [[NSArray new] makeObjectsPerformSelector:@selector(<#selector#>)];

数组中的每个元素 都去 调用select方法器中的方法!
比如

[self.view.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];

http://www.niftyadmin.cn/n/1557388.html

相关文章

gitlab与jenkins利用webhook自动构建

Jenkins利用GitLab Webhook触发代码提交自动构建任务2017年10月27日 11:47:54 阅读数&#xff1a;682更多个人分类&#xff1a; JenkinsJenkins上安装下图所示插件Jenkins构建触发器配置如下&#xff1a;GitLab配置如下&#xff1a;项目&#xff08;test&#xff09;——设置&a…

vue 报 Cannot read property ‘prototype‘ of undefined

报错信息&#xff1a; Cannot read property prototype of undefined 这个错 可能是 js 引入顺序问题造成的 也有可能是 引入 elemen-ui造成的 。还有可能是 其它 问题造成的。 vue3 需要引入 element-plus &#xff0c;引入 element-ui 也会报这个错 引入顺序问题&#xff…

[iOS 字符串] oc字符串与c字符串互转

一、C字符串转OC字符串 const char *cString "This is a C string";//动态方法NSString *ocString1 [[NSString alloc] initWithUTF8String:cString];NSString *ocString2 [[NSString alloc] initWithCString:cString encoding:NSUTF8StringEncoding];NSString *o…

网络流量监控工具与分析Ntop和Ntopng

为什么80%的码农都做不了架构师&#xff1f;>>> Step1:安装Ntop所需要的开发库及软件 yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel libpcap-devel libpng gdbm gd gettext glib zlib libxml…

vue.js cdn 引入(cdn地址总结)

vue 2 &#xff1a; 对于制作原型或学习&#xff0c;你可以这样使用最新版本&#xff1a; <script src"https://cdn.jsdelivr.net/npm/vue2.6.14/dist/vue.js"></script> 对于生产环境&#xff0c;我们推荐链接到一个明确的版本号和构建文件&#xff…

vue 报警告:Failed to resolve component:ConsTtem IFthis is a native custom element,make sure to exclude

警告信息 : Failed to resolve component:ConsTtem IFthis is a native custom element,make sure to exclude it from component resolution via cpmpilerOptions.isCustomElement at xxx . 翻译一下就是&#xff1a; 未能解析组件&#xff1a;constem如果此元素是本机自定…

Go 1.11 的go.mod

为什么80%的码农都做不了架构师&#xff1f;>>> A module version is defined by a tree of source files, with a go.mod file in its root. When the go command is run, it looks in the current directory and then successive parent directories to find the…

[iOS textfile一行代码 键盘消失]

[self.view endEditing:YES]; https://my.oschina.net/hmj/blog/100020