UIView-Copy:向 UIView 添加复制方法

时间:2021-07-13 02:18:20
【文件属性】:
文件名称:UIView-Copy:向 UIView 添加复制方法
文件大小:63KB
文件格式:ZIP
更新时间:2021-07-13 02:18:20
Objective-C UIView+复制 用法 要运行示例项目, pod install克隆 repo,然后从 Example 目录运行pod install 。 #import //If you need drawRect: drawing UIView *copiedView = [originalView pm_copy]; //if you need mask layer property UIView *copiedViewWithDrawRect = (UIView *)[originalView pm_copyWithNeedsDrawRect:YES]; //copy using the snapshot api. iOS 7 only UIView *copiedViewFromSnapshot = (UIView *)[orig
【文件预览】:
UIView-Copy-master
----.gitignore(494B)
----UIView+Copy.podspec(952B)
----Example()
--------Example.xcworkspace()
--------Example()
--------ExampleTests()
--------Pods()
--------Example.xcodeproj()
--------Podfile.lock(215B)
--------Podfile(220B)
----LICENSE(1KB)
----CHANGELOG.md(418B)
----Classes()
--------UIView+PMCopy.h(1KB)
--------PMUIViewHelpers.m(6KB)
--------UIView+PMCopy.m(1KB)
--------PMUIViewHelpers.h(742B)
----README.md(1KB)
----Rakefile(4KB)

网友评论