loongertao / tltransitions Goto Github PK
View Code? Open in Web Editor NEW快速实现控制器的转场和View的快速popover显示,并支持自定义动画、手势退场
License: MIT License
快速实现控制器的转场和View的快速popover显示,并支持自定义动画、手势退场
License: MIT License
iOS 13.3系统,利用
+ (instancetype)animatorWithSwipeType:(TLSwipeType)swipeType pushDirection:(TLDirection)pushDirection popDirection:(TLDirection)popDirection;
- (void)pushViewController:(UIViewController *)viewController animator:(id<TLAnimatorProtocol>)animator;
进行上下移动动画弹出的controller,在侧滑返回时,动画会出现异常,与低版本相比,会缺乏一个渐进过程,滑动非常小的幅度,动画幅度也会非常大
系统iOS12,iOS13,机型iphone8,iphoneX
问题描述:
tabbarVC ,包含rootVC为Nav, nav使用pushViewController方法后进入侧滑返回时候tabbar会更着滑动出来,从而出现侧滑的边缘和tabbar间出现空白
pod 'TLTransitions', '~> 1.4.1' 使用这个
直接报错 [!] Unable to find a specification for TLTransitions (~> 1.4.1)
使用1.4.0 也是。
在代码多层嵌套的时候,需要在dismiss后才能push到新的页面,这时就要在dismiss完成后才能进行。。
TLTransitions showView 方法的自动弹起键盘,如果输入框在很高的位置,键盘弹出会在页面最下方,会导致输入框的y=负数。导致看不到输入框,这个问题能解决吗?
导入头文件#import "TLTransitions.h" 后,使用你说的一步到位的代码 ,根本实现不了功能啊, 迫切的希望 把使用说明写的详细一点,已给星星,望回复,功能强大,但是不知道如何使用,建议demo 写简单一些
效果很炫,只是Assets里面的图片资源太大了,由于个人网速原因,下载Demo体验的时候,下了好久、建议换些小点的😂
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;
}
可能是因为导航栏的透明/不透明造成的
计算的fromRect和toRect没有计入导航栏的高度,造成整体向上偏移。
#import "UIViewController+Transitioning.h"
// 代码
(void)tl_dealloc{
tl_Log(@"%@ %s", [self class], func);
[TLTransitionDelegate removeAnimatorForKey:self];
[self tl_dealloc];
}
作者大神,目前pod直接更新只能update到1.4.1,然而1.4.1上存在pop时的crash
自定义一个view,不需要全屏显示,请问怎么实现拖拽呢?谢谢
在《集锦》中展示的那个效果,“对指定Rect范围的内容,进行缩放和平移”
我翻看了所有的内容历史节点,并没有这个效果。
希望能够添加上。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.