MotionImageView:图像视图可让您使用陀螺仪移动其图像

时间:2021-06-21 13:00:57
【文件属性】:
文件名称:MotionImageView:图像视图可让您使用陀螺仪移动其图像
文件大小:1.39MB
文件格式:ZIP
更新时间:2021-06-21 13:00:57
Swift 运动图像视图 图像视图可让您使用陀螺仪移动其图像 演示 用法 将MotionImageView.swift复制并粘贴到您的项目中。 然后创建一个带有框架和图像的 MotionImageView。 let motionImage = MotionImageView ( frame : CGRect ( x : 10 , y : 30 , width : 200 , height : 200 ), image : UIImage ( named : " yosemite.jpg " ) ! ) view. addSubview (motionImage)
【文件预览】:
MotionImageView-master
----MotionImageViewTests()
--------Info.plist(749B)
--------MotionImageViewTests.swift(921B)
----README.md(508B)
----MotionImageView.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(17KB)
--------xcuserdata()
----LICENSE(1KB)
----MotionImageView()
--------AppDelegate.swift(2KB)
--------Base.lproj()
--------yosemiteWide.jpg(137KB)
--------yosemite.jpg(87KB)
--------MotionImageView.swift(2KB)
--------Images.xcassets()
--------Info.plist(1KB)
--------ViewController.swift(713B)
----demo.gif(1.18MB)

网友评论