UIViewHelpers:iOS 的 UIView 类的 Category 中的一些辅助方法

时间:2021-07-02 13:21:58
【文件属性】:
文件名称:UIViewHelpers:iOS 的 UIView 类的 Category 中的一些辅助方法
文件大小:28KB
文件格式:ZIP
更新时间:2021-07-02 13:21:58
Objective-C 这是UIView Category 中越来越多的辅助方法集合。 包括单元测试的集合。 截至目前,此类别中的每个方法都致力于递归 UIView 的子视图并根据条件测试每个子视图。 假设您想找到应用程序的“第一响应者”。 使用类别方法firstSubviewPassingTest: ,您可以轻松迭代应用程序的所有子视图以定位第一响应者。 -(UIView*)findCurrentFirstResponder { // Get the app's highest-level view UIView *rootView = [[[[UIApplication sharedApplication] keyWindow] rootViewController] view]; // Recurse through all its subviews to find
【文件预览】:
UIViewHelpers-master
----UIViewHelpers()
--------TestView.xib(59KB)
--------en.lproj()
--------main.m(341B)
--------UIViewHelpers-Info.plist(1KB)
--------UIViewHelpers-Prefix.pch(329B)
--------Default-568h@2x.png(18KB)
--------AppDelegate.h(282B)
--------Default.png(6KB)
--------Default@2x.png(16KB)
--------AppDelegate.m(2KB)
----UIView+Helpers.m(4KB)
----UIView+Helpers.h(792B)
----UIViewHelpersTests()
--------en.lproj()
--------UIViewHelpersTests.h(244B)
--------UIViewHelpersTests-Info.plist(693B)
--------UIViewHelpersTests.m(11KB)
----README.md(2KB)
----UIViewHelpers.xcodeproj()
--------xcuserdata()
--------project.pbxproj(20KB)
----.gitignore(46B)

网友评论