美文网首页
iOS答题,小说,漫画翻页效果

iOS答题,小说,漫画翻页效果

作者: 天蝎座沫沫 | 来源:发表于2019-06-17 15:16 被阅读0次
Untitled1.gif
配置多种翻页效果
///翻页效果枚举
typedef NS_ENUM(NSInteger, LABPageEffectType) {
    LABPageEffectTypeNone,              //无效果
    LABPageEffectTypeCoverPage,         //覆盖
    LABPageEffectTypeLeftRightPage,     //左右分页
    LABPageEffectTypeLeftRightScroll,   //左右滑动
    LABPageEffectTypeSimulation,        //仿真
    LABPageEffectTypeUpdownPage,        //上下分页
    LABPageEffectTypeUpdownScroll       //上下滑动
};

配置设置参数

///dataSource/delegate
@property (nonatomic, weak) id<LABCoverControllerDataSource> dataSource;
@property (nonatomic, weak) id<LABCoverControllerDelegate> delegate;
///页面切换代理
@property (nonatomic, strong) id<LABCoverTranslationDelegate> translationDelegate;
///切换方向,默认LABCoverDirectionHorizontal
@property (nonatomic, assign) LABCoverDirection direction;

///当前控制器
@property(nonatomic, strong, readonly) UIViewController *curController;

///是否可以点击切换,默认YES
@property (nonatomic, assign) BOOL tapSwitchEnable;
///是否可以滑动切换,默认YES
@property (nonatomic, assign) BOOL panSwitchEnable;
///切换时是否动画,默认YES
@property (nonatomic, assign) BOOL switchAnimationEnable;
///是否正在动画中
@property(nonatomic, assign, readonly, getter=isAnimating) BOOL animating;

获取将要展示页面

///获取上一页的VC
///@param coverController coverController
///@param viewController 当前VC
///@return 上一页的VC
- (nullable UIViewController *)labCoverController:(LABCoverController *)coverController viewControllerBeforeViewController:(UIViewController *)viewController;

///获取下一页的VC
///@param coverController coverController
///@param viewController 当前VC
///@return 下一页的VC
- (nullable UIViewController *)labCoverController:(LABCoverController *)coverController viewControllerAfterViewController:(UIViewController *)viewController;

相关文章

  • iOS答题,小说,漫画翻页效果

    配置设置参数 获取将要展示页面

  • ios 翻页效果动画

    项目当中要实现一个电子档案,效果呢是类似小说翻页的效果。很简单,先来说一下实现思路 写一个用来接收你想展示信息的控...

  • IOS 小说阅读《覆盖翻页》效果框架 DZMCoverAnima

    IOS小说阅读《覆盖翻页》效果支持控制器切换也支持View切换注意:打开工程默认是支持控制器切换的右键ShowFi...

  • UIPageViewController的用法

    在地铁上看到看小说的翻页效果,研究了一下,发现苹果自带翻页神器UIPageViewController UIPag...

  • UIPageViewController使用 分享笔记

    前言 由于公司要开发一款小说类阅读APP,其中体验上非常重要的一点便是翻页效果。为了实现翻页效果,我查询了很多资料...

  • iOS实现翻页效果动画

    项目里面有一个接受消息然后将消息内容以翻页的形式展现给用户,返回的数据就是简单的文字没有图片,所以我就简单的用了t...

  • 翻页效果

    设定翻页转轴transform-origin: left center;左边中心; 设定页面翻页层级:page页面...

  • 翻页效果

    小时候看电子书,很多电子书APP都有仿真的翻页效果,那时候觉得很新奇,奈何姿势水平不够,看不破其中的奥秘,有些当时...

  • iOS仿红板报翻页效果

    最近公司要实现类似红板报的翻页效果,所以封装了一个组件来使用 Demo已上传Githubhttps://githu...

  • iOS开发禁用翻页手势

    小说APP中涉及到了自动阅读功能,翻页手势需要禁用下面两中controller禁用的方法:平移效果以及无效果在网上...

网友评论

      本文标题:iOS答题,小说,漫画翻页效果

      本文链接:https://www.haomeiwen.com/subject/nmrafctx.html