Giter Site home page Giter Site logo

shmxybfq / tfpopup Goto Github PK

View Code? Open in Web Editor NEW
241.0 9.0 30.0 29.16 MB

🚀🚀🚀TFPopup不生产弹框,它只是弹框的弹出工🚀🚀🚀默认支持多种动画方式一行调用,支持完全自定义动画.

License: MIT License

Objective-C 83.32% Ruby 0.49% Swift 16.14% C 0.05%
popup alert toast loading tfpopup actionsheet sheet pop xpopup

tfpopup's People

Contributors

shmxybfq 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

tfpopup's Issues

循环引用和手动收起popView

在框架中,inView(父界面)被强引用,而popView又加在inView上的,这可能导致循环引用问题。

手动收起是指,如果在某界面收到需要收起popView的事件,该界面又无法直接获取到popView,这时收起popView的功能就很复杂了。比如在子模块将popView弹到window上,首页收到了推送通知将跳转至另一模块,在首页只能遍历window上的子view,判断是否是popView,然后再调用tf_hide。多个子模块都可能弹不同的自定义弹框,这时首页就要写很多 if 来判断是不是要找的popView。
这个问题,最好是能直接调个框架类方法能一次性收起所有弹框,但是想了想似乎不好实现。看了下MBProgressHUD(旧版)的收起逻辑,它是指定收起哪个界面上的hud,而且它的hud都是MBProgressHUD类型,可以很好的判断。TFPopup并没有自定义遮罩View,遮罩和popView是平级的加在inView上,TFPopup无法判断inView上是否有弹框,也无法找到弹框,所以目前的实现方式好像是做不到统一收起弹框了。

关于View添加在UIWindow上后IQKeyboardManager失效

经过尝试发现一个问题,当我要弹出的view上有输入框的时候,这个弹出的view添加在self.view上去弹出,点击输入框后IQKeyboardManager能够正常顶起输入框,但当我将弹出的view添加在当前的Window上时点击输入框后IQKeyboardManager不能够正常顶起输入框

希望作者有空的时候查看一下,谢谢。

希望添加动画的延时属性

在extension中有看到延时属性,但是param中没有,所以我尝试了下在param 添加属性,在UIView+TFPopup.m 文件的tf_reload方法中将值传给extension。
image
但是在tf_show方法中,self.extension.showAnimationDelay的值依然为0。
打印self.extension对象,在tf_reloadtf_show方法中,它是同一个。请问怎样才能把值传给extension呢?作者可以加一个这个功能吗?

可以支持队列展示弹框吗?

可以支持队列展示弹框吗?

场景:同一时刻,可能有多个弹窗需要展示。
要求:

  1. 界面上只能展示一个,关闭其中一个才可以展示下一个;
  2. 展示到某个弹窗时,点击弹框的“确认”按钮,打开一个控制器页面,此时希望暂停队列里面的弹框,等当前页面关了,恢复剩下的弹框展示;
  3. 展示到某个弹窗时,点击弹框的“确认”按钮,打开一个控制器页面,此时不希望展示所有剩余弹框了,清空队列。

点赞

这么好的作品希望有更多人的star

设置了可以拖动为啥view 无法移动。交互也打卡了

GeRenPKView *view = [GeRenPKView getNibView:@"GeRenPKView"];
view.userInteractionEnabled = YES;
view.backImage.userInteractionEnabled = YES;
view.popupDelegate = self;
TFPopupParam *param = [TFPopupParam new];
param.offset = CGPointMake(0, 0);
param.popupSize = CGSizeMake(kScreenWidth - 20 , 200);
param.disuseBackgroundTouchHide = NO;
param.dragEnable = YES;
param.dragStyle = DragStyleFree;
param.discernScrollEnable = YES;
self.geRenPKView = view;
[view tf_showScale:self.view offset:CGPointZero popupParam:param];

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.