Dillion-iOS-Flip-Transform-3a315e8
FLIP 

所属分类:iPhone/iOS
开发工具:Objective-C
文件大小:131KB
下载次数:6
上传日期:2013-03-15 23:41:44
上 传 者cszhan
说明:  这个是iphone 程序种一些动画实现的源代码,对初学者学习ios动画编程比较有帮助
(this iphone animation source code, it is very useful for the beginning learner.)

文件列表:
Dillion-iOS-Flip-Transform-3a315e8 (0, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj (0, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\project.pbxproj (17358, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\project.xcworkspace (0, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\project.xcworkspace\contents.xcworkspacedata (154, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\project.xcworkspace\xcuserdata (0, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\project.xcworkspace\xcuserdata\dilliontan.xcuserdatad (0, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\project.xcworkspace\xcuserdata\dilliontan.xcuserdatad\UserInterfaceState.xcuserstate (157548, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\project.xcworkspace\xcuserdata\dilliontan.xcuserdatad\WorkspaceSettings.xcsettings (383, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\xcuserdata (0, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\xcuserdata\dilliontan.xcuserdatad (0, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\xcuserdata\dilliontan.xcuserdatad\xcdebugger (0, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\xcuserdata\dilliontan.xcuserdatad\xcdebugger\Breakpoints.xcbkptlist (91, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\xcuserdata\dilliontan.xcuserdatad\xcschemes (0, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\xcuserdata\dilliontan.xcuserdatad\xcschemes\transform.xcscheme (3080, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform.xcodeproj\xcuserdata\dilliontan.xcuserdatad\xcschemes\xcschememanagement.plist (481, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform (0, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\AnimationViewController.h (2452, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\AnimationViewController.m (13363, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\AppDelegate.h (388, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\AppDelegate.m (3372, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\en.lproj (0, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\en.lproj\InfoPlist.strings (45, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\framework (0, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\framework\AnimationDelegate.h (5290, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\framework\AnimationDelegate.m (20857, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\framework\AnimationFrame.h (1831, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\framework\AnimationFrame.m (2803, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\framework\FlipView.h (2008, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\framework\FlipView.m (15282, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\framework\GenericAnimationView.h (3562, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\framework\GenericAnimationView.m (5412, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\main.m (345, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\repeat_normal.png (4196, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\repeat_selected.png (4277, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\reverse_normal.png (4333, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\reverse_selected.png (4426, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\shadow_normal.png (4402, 2012-01-23)
Dillion-iOS-Flip-Transform-3a315e8\transform\shadow_selected.png (4508, 2012-01-23)
... ...

##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 ###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_) - __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

近期下载者

相关文件


收藏者