##iOS-Flip-Transform
Animation component for the effect of flipping as in a news/clock ticker, or a page turn.
Structured around the idea of a data object (i.e. headline in news, number in a clock, page in a book) as an animation frame, comprised of multiple CALayers.
Supports 3 interaction modes:
- __Triggered__: as in a tap to flip
- __Auto__: as in a revolving flip that loops through data
- __Controlled__: as in a pan gesture that moves the flip layer according to touch
Supports different types of content:
- _Blank_, with background color
- _With image_, whether from file or screenshot
- _With dynamic text_, either composited on background or on image
###Basic Usage
1. Create delegate object -
`AnimationDelegate *animationDelegate = [[AnimationDelegate alloc] initWithSequenceType: directionType:];`
2. Create flip view (either vertical or horizontal flip animation type) and assign it to animation delegate -
`FlipView *flipView = [[FlipView alloc] initWithAnimationType: animationDelegate: frame:];`
`animationDelegate.transformView = flipView;`
3. Add flip view as subview and customize properties (refer below for configurable list)
4. Call `[flipView printText: usingImage: backgroundColor: textColor:]` to draw each frame (minimum of 2)
5. Call `[animationDelegate startAnimation:]` to start the animation. For using buttons or pan gesture, look at the animation controller example
Note: To remove jagged edges during flipping, set __Renders with edge antialiasing__ in the project plist to YES. This may decrease performance.
###Configurable Properties
####Animation Delegate
- __repeatDelay__: Length of time to the next flip after the current flip completes (only for _auto interaction mode_)
- __shadow__: Whether or not to display shadow
- __repeat__: Whether or not to loop through animation frames (only for _auto interaction mode_)
- __sensitivity__: Positive modifier for input to animation response. Higher the sensitivity, greater the response. (only for _controlled interaction mode_)
- __gravity__: Positive modifier for speed of movement to nearest resting state after input is removed. Higher the gravity, faster the speed. (only for _controlled interaction mode_)
- __perspectiveDepth__: Positive value for adjusting the perspective. Lower the value, greater the illusion of depth.
- __nextDuration__: duration of the next flip animation
####FlipView
- __textInset__: inset of text relative to the flip view, like border margin
- __textOffset__: positioning of text relative to top left of the flip view
- __fontSize__: font size
- __font__: font string, can be custom or inbuilt, defaults to Helvetica
- __fontAlignment__: left, center or right alignment
- __textTruncationMode__: none, start, middle or end truncation
- __sublayerCornerRadius__: corner radius to apply to each sub panel of the flip view
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Flip Transform View.zip (35个子文件)
Flip Transform View
.DS_Store 6KB
截图
.DS_Store 6KB
94.png 32KB
说明.txt 1KB
代码
.DS_Store 6KB
Flip Transform View
transform
reverse_normal.png 4KB
repeat_selected.png 4KB
shadow_selected.png 4KB
transform-Info.plist 1KB
en.lproj
InfoPlist.strings 45B
main.m 345B
transform-Prefix.pch 321B
AnimationViewController.h 2KB
repeat_normal.png 4KB
shadow_normal.png 4KB
reverse_selected.png 4KB
AnimationViewController.m 13KB
AppDelegate.h 388B
framework
FlipView.h 2KB
AnimationFrame.m 3KB
GenericAnimationView.h 3KB
AnimationDelegate.h 5KB
FlipView.m 15KB
AnimationDelegate.m 20KB
GenericAnimationView.m 6KB
AnimationFrame.h 2KB
AppDelegate.m 3KB
transform.xcodeproj
project.xcworkspace
contents.xcworkspacedata 154B
xcuserdata
dilliontan.xcuserdatad
WorkspaceSettings.xcsettings 383B
UserInterfaceState.xcuserstate 138KB
xcuserdata
dilliontan.xcuserdatad
xcdebugger
Breakpoints.xcbkptlist 91B
xcschemes
xcschememanagement.plist 481B
transform.xcscheme 3KB
project.pbxproj 17KB
README.md 3KB
共 35 条
- 1
资源评论
逍遥墨君
- 粉丝: 26
- 资源: 632
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Python的图像阴影检测与去除源码(高分期末大作业项目).zip
- 基于C++/Qt实现的井字棋游戏
- 基于 Python 编程语言的 Web 框架Django
- Python和Flask实现的基于体检数据的城市公共健康可视分析系统源码+使用说明.zip
- 基于python实现的华为智慧工地-安全帽检测
- buck-boost_2023-12-16_12-12-13.eprj
- 后端开发关于数据库和API开发的介绍
- 机器学习和数据挖掘课程设计-米其林餐厅数据挖掘管理系统源码+使用文档说明.zip
- html html html展示我与ai的对化
- 数据结构课程设计-全国交通出行咨询模拟系统C语言实现源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功