losentrad / lstpopview Goto Github PK
View Code? Open in Web Editor NEW(重构开发中,swift版本同步进行)LSTPopView iOS万能弹窗 (QQ群:1045568246 微信:a_LSTKit)
License: MIT License
(重构开发中,swift版本同步进行)LSTPopView iOS万能弹窗 (QQ群:1045568246 微信:a_LSTKit)
License: MIT License
好像设置动画时间不生效,pop和dismiss都不生效
能不能添加一个,底部单纯的弹入,弹出,不要淡入淡出的效果
作者你好,感谢你的代码开源!
@objc func buttonClick(_ button: UIButton) {
let tableView = MyTableView(frame: CGRect(x: 0, y: 0, width: view.bounds.width, height: 200))
let popView = LSTPopView.initWithCustomView(tableView, parentView: nil, popStyle: .smoothFromBottom, dismissStyle: .smoothToBottom)
popView?.hemStyle = .bottom
popView?.isClickBgDismiss = true
popView?.pop()
}
[TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. Table view: <UITableView: 0x7fd841840a00; frame = (0 0; 390 200); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x600002082e20>; layer = <CALayer: 0x600002edce20>; contentOffset: {0, 0}; contentSize: {390, 440}; adjustedContentInset: {0, 0, 0, 0}; dataSource: <OneWord.MyTableView: 0x7fd840413430; frame = (0 0; 390 200); gestureRecognizers = <NSArray: 0x600002066e50>; layer = <CALayer: 0x600002ed6920>>>
希望作者能补充该功能
我在左侧测滑页面上放了一个tableView。
当我拖拽的手势在tableView上的时候,我是想侧滑的,结果y变了
target has transitive dependencies that include statically linked binaries: (LSTCategory)
轻扫可以消失,拖拽超过一定距离也应该让它dismiss
masonry约束的自定义customview 宽高是根据subview的约束自适应
在使用的时候 侧边弹出有弹簧效果怪怪的
到处是广告,无语
作者您好,Cocospod引入LSTPopView,如果Podfile文件里不加 use_frameworks! pod install会报target has transitive dependencies that include statically linked binaries: (LSTCategory)错误
怎样在加入use_frameworks!的情况下pod install导入成功呢?
我在第一个XPopup的button按钮创建并显示第二个XPopup,但是经常出现崩溃。在“LSTPopView.m“文件的511行处,代码是“id obj = popViewArr[popViewArr.count-2];”。xcode的bug提示popViewArr这个数组下标越界
点击弹框消失的动画可以自定义嘛,比如我想缩放消失,目前框架提供的只有到顶,左,底,右
The 'xxx' target has transitive dependencies that include statically linked binaries: (LSTCategory)
在创建新的弹窗上,在创建一个collecitonView 所有item 不能点击,只有两个手指同时操作,一个手指按住,屏幕,另一个手指点击item 才能生效,应该是某个点击事件处理,响应了方法,响应链无法继续传递下去了
你好,LoSenTrad! 如果自定义view里面有UITextView,UITextField,会被键盘挡住内容
没法运行啊
demo里的定时器调试,倒计时未结束的时候,点击背景消失后,在点击显示弹窗,弹窗会闪一下,貌似是上一个定时任务结束了导致消失闪了一下
比如 编队Groupid 设计的初衷和作用有什么作用~
Keyboard 和 customview 并不在同一坐标系,在presentViewController的view中弹出popview的话,customViewMaxY计算不对,可以这样修改:
在- (void)keyboardWillShow:(NSNotification *)notification
这个方法中修改:
CGFloat customViewMaxY = self.customView.pv_Bottom + self.avoidKeyboardSpace;
改成:
CGRect cf = [self.customView convertRect:self.customView.bounds toView:[UIApplication sharedApplication].keyWindow];
CGFloat customViewMaxY = cf.origin.y + cf.size.height + self.avoidKeyboardSpace;
问题:陆续弹出两个后,第二个会显示,第一个会被隐藏,当第二个还在展示而第一个消失时,界面会闪一下。
复现:Demo中常用示例场景,在点完 QQ顶部提示栏
后再点击 类微信/微博底部弹窗口
即可复现
在使用窗口优先级来做弹窗效果时,第二个弹窗的优先级比第一个的低,并都为它们设置了自动消失时间,在第一个弹窗出现后,触发第二个弹窗,此时第二个不会展示,这是正常的,但是第二个弹窗的定时器和生命周期block(popViewDidPopBlock
popViewWillPopBlock
)会失效
想实现如下效果:当弹出第一个后,第二个触发弹窗时,如果前面有弹窗展示了,则等待第一个弹窗消失后,再弹出第二个,并且都支持设置自动消失时间,这种该如何实现?
是否可支持仅下拉和右滑拖拽消失,即拖拽同时只会是下拉或右滑,而不是右下方向移动
[!] Unable to find a specification for LSTTimer
depended upon by LSTPopView
找不到 'NSObject+LSTObject.h' 这个头文件的问题应该怎么解决?
/** 移除popView */
+ (void)removePopView:(LSTPopView *)popView {
if (!popView) { return;}
NSArray *arr = LSTPopViewM().popViewMarr;
for (NSValue *v in arr) {
LSTPopView *tPopView = v.nonretainedObjectValue;
if ([tPopView isEqual:popView]) {
[LSTPopViewM().popViewMarr removeObject:v];
break;
return;
}
}
}
这里 移除的时候, 应该判断 数组里的类型, 被添加到 数组里的, 不一定 全是 NSValue,
当 依次 添加 priority
越来越小的popview时, 因为没有 添加到 superview
, 你 扔到 arr里的就是普通的popview, 所以会闪退
点击customview 上的某个按钮,键盘消失了,而且没有处罚按钮点击事件。这个问题怎么解决
如题 关闭弹窗 闪退
首先非常喜欢楼主的LSTPopView
以下是我解决点击cell被拦截了的办法、或者楼主是否有更好的
#pragma mark-手势代理,解决和tableview点击发生的冲突
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
if ([NSStringFromClass([touch.view class]) isEqualToString:@"UITableViewCellContentView"]) {//判断如果点击的是tableView的cell,就把手势给关闭了
return NO;//关闭手势
}//否则手势存在
return YES;
}
CGFloat LSTStatusBarHeight() {
if (lst_IsIphoneX_ALL()) {
return 44;
} else {
return 20;
}
}
lst_IsIphoneX_ALL方法里面列出了4种分辨率,只要全屏不等于这4种分辨率就是刘海屏,这种算法有问题吧。
一个控制器里面弹出多个窗口,窗口越多背景越黑,叠加多次了
popView.bgClickBlock = ^{
[weakPopview dismiss];
};
lst_PopViewDidDismiss调用后,控件并没有从内存中注销,全局使用一个控件时,判断会有问题
如果只想竖屏不想支持横屏切换是否有参数可以设置?
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.