Code Monkey home page Code Monkey logo

tltransitions's People

Contributors

loongertao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tltransitions's Issues

请增加一个dismiss完成的回调。。

在代码多层嵌套的时候,需要在dismiss后才能push到新的页面,这时就要在dismiss完成后才能进行。。

  • (void)dismiss;
  • (void)dismissWithCompletion: (void (^ __nullable)(void))completion NS_AVAILABLE_IOS(5_0);

iOS 13.3系统 底部弹出后侧滑返回动画异常

iOS 13.3系统,利用
+ (instancetype)animatorWithSwipeType:(TLSwipeType)swipeType pushDirection:(TLDirection)pushDirection popDirection:(TLDirection)popDirection;
- (void)pushViewController:(UIViewController *)viewController animator:(id<TLAnimatorProtocol>)animator;
进行上下移动动画弹出的controller,在侧滑返回时,动画会出现异常,与低版本相比,会缺乏一个渐进过程,滑动非常小的幅度,动画幅度也会非常大

pushViewController 导致侧滑返回时tabbar出现空隙

系统iOS12,iOS13,机型iphone8,iphoneX
问题描述:
tabbarVC ,包含rootVC为Nav, nav使用pushViewController方法后进入侧滑返回时候tabbar会更着滑动出来,从而出现侧滑的边缘和tabbar间出现空白

关于isIPhoneX 函数

presentedViewControllerFrame.size = presentedViewContentSize;
if(self.pType == TLPopTypeActionSheet){
if([[self class] isIPhoneX]){/////这个函数已经过时了,应该使用安全区域去实现吧?
presentedViewControllerFrame.size.height += 34;
}

        presentedViewControllerFrame.origin.y = CGRectGetMaxY(containerViewBounds) - presentedViewControllerFrame.size.height;
    }else if(self.pType == TLPopTypeAlert || self.pType == TLPopTypeAlert2){
        // 垂直居中
        presentedViewControllerFrame.origin.y = (CGRectGetMaxY(containerViewBounds) - presentedViewContentSize.height) * 0.5;
    }

pod不了啊,找不到文件。

pod 'TLTransitions', '~> 1.4.1' 使用这个
直接报错 [!] Unable to find a specification for TLTransitions (~> 1.4.1)
使用1.4.0 也是。

showView

TLTransitions showView 方法的自动弹起键盘,如果输入框在很高的位置,键盘弹出会在页面最下方,会导致输入框的y=负数。导致看不到输入框,这个问题能解决吗?

由于dealloc造成的问题,放在这里只是记录一下,方便寻找。

#import "UIViewController+Transitioning.h"

// 代码

  • (void)load {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
    Class cls = [UIViewController class];
    Method method1 = class_getInstanceMethod(cls, NSSelectorFromString(@"dealloc"));
    Method method2 = class_getInstanceMethod(cls, @selector(tl_dealloc));
    method_exchangeImplementations(method1, method2);
    });
    }
  • (void)tl_dealloc{

    tl_Log(@"%@ %s", [self class], func);

    [TLTransitionDelegate removeAnimatorForKey:self];

    [self tl_dealloc];
    }

Assets图片资源

效果很炫,只是Assets里面的图片资源太大了,由于个人网速原因,下载Demo体验的时候,下了好久、建议换些小点的😂

不知道如何使用

导入头文件#import "TLTransitions.h" 后,使用你说的一步到位的代码 ,根本实现不了功能啊, 迫切的希望 把使用说明写的详细一点,已给星星,望回复,功能强大,但是不知道如何使用,建议demo 写简单一些

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.