Yee

Results 19 comments of Yee

如果加上一层拦截器,会违背设计的初衷。

谢谢,之前写没有考虑这么多,现在已经更新为1.0.2,之前的版本因为使用了masksToBounds部分属性会造成离屏渲染问题,1.0.1方法已经被舍弃,你看看BadgeViewDemo已经通过隐藏来实现,而不是移除。实际上到底是移除还是隐藏,这个都不是好的方法 1.如果对象只使用一次 ,如果不移除就会浪费内存空间2.如果多次使用,重复创建也会浪费内存, 我最后选择隐藏的方式.

1. 直接导入源码,以获取X系列`safeAreaInsets.bottom`的值,修改`zhPopupLayoutTypeBottom`的位置。 2. 导入源码 ,声明一个类似`contentInset`属性,同样需要判断是否是 `zhPopupLayoutTypeBottom ` ``` CGFloat safeAreaBottomInset = 0.0f; if (@available(iOS 11.0, *)) { safeAreaBottomInset = [UIApplication sharedApplication].keyWindow.safeAreaInsets.bottom; } return CGPointMake(point.x, _maskView.bounds.size.height - _popupView.bounds.size.height / 2 -safeAreaBottomInset...

check your code , like `alertView.heightMax = 200;` or `[[LGAlertView appearance] setHeightMax:200];`

may be useful ``` @property (nonatomic, weak) UIView *leftView; @property (nonatomic, weak) UIView *rightView; ```

### 解析问题 1. update == NO值问题 ``` - (void)updateTitle:(NSString *)title atIndex:(NSInteger)index andWidth:(BOOL)update { if (!update) { return; } [self resetFrames]; } ``` 2.delegate或dataSource数据源没有更改 ``` - (void)updateTitle:(NSString *)title atIndex:(NSInteger)index { [self.menuView...

暗黑模式跟作者写的组件的出发点是各自独立的,组件只是提供一个如UIPageViewController的容器,暗黑模式说白了就是换肤,找到换肤的时机就好。 腾讯开源组件QMUI给出了拦截的方法。[链接](https://github.com/Tencent/QMUI_iOS/blob/master/QMUIKit/UIKitExtensions/UITraitCollection%2BQMUI.m) ``` if (qmui_lastNotifiedUserInterfaceStyle != traitCollection.userInterfaceStyle) { qmui_lastNotifiedUserInterfaceStyle = traitCollection.userInterfaceStyle; [[NSNotificationCenter defaultCenter] postNotificationName:QMUIUserInterfaceStyleWillChangeNotification object:traitCollection]; } ```