UIView-MWParallax:在 7 之前为 iOS 添加视差效果的 UIView 类别

时间:2021-06-09 13:36:20
【文件属性】:
文件名称:UIView-MWParallax:在 7 之前为 iOS 添加视差效果的 UIView 类别
文件大小:4.49MB
文件格式:ZIP
更新时间:2021-06-09 13:36:20
Objective-C UIView+MW视差 7 之前的 iOS 中可以使用的视差 UIView 类别(使用 iOS 6.1 测试) 就像将 UIView 的(或其任何子类)参数 iOS6ParallaxIntensity 值设置为 0 以外的任何值一样简单。 例如: self.label = [[UILabel alloc] init]; ... self.label.iOS6ParallaxIntensity = 15; 要使用它,您需要将 CoreMotion.framework 包含到您的项目中。 这目前仅适用于 ARC! 积分:感谢 gbammc ( ) 修复问题 #1
【文件预览】:
UIView-MWParallax-master
----UIView+MWParallax()
--------UIView+MWParallax.m(7KB)
--------UIView+MWParallax.h(311B)
----LICENSE.md(1KB)
----README.md(580B)
----iOS6 Parallax Demo()
--------ViewController.m(1013B)
--------en.lproj()
--------bg.png(4.48MB)
--------main.m(347B)
--------Default-568h@2x.png(18KB)
--------iOS6 Parallax Demo-Prefix.pch(335B)
--------ViewController.h(232B)
--------AppDelegate.h(294B)
--------iOS6 Parallax Demo-Info.plist(1KB)
--------Default.png(6KB)
--------Default@2x.png(16KB)
--------AppDelegate.m(212B)
----iOS6 Parallax Demo.xcodeproj()
--------project.pbxproj(15KB)

网友评论