gpt4 book ai didi

ios - 神秘的_UIParallaxDimmingView。它是什么?

转载 作者:行者123 更新时间:2023-11-28 22:20:41 39 4
gpt4 key购买 nike

我将 UITableViewController 拥有的常规 UITableView 放在 UINavigationController 下。

现在,看看这段代码:

        [BGHPTools vDoForeGroundAndWait:^{
PO(vi);
PO([vi superview]);
PO ([[vi superview]superview]);
PO ([[[vi superview]superview]superview]);
}];
NSArray * arObjects =blarGetArrayTobeParsedWith(weakBODo);//No view object is manipulated here!!!!
[BGHPTools vDoForeGroundAndWait:^{
PO(vi);
PO([vi superview]);
PO ([[vi superview]superview]);
PO ([[[vi superview]superview]superview]);
}];

代码 blarGetArrayTobeParsedWith 只是从互联网上下载内容并用于所有显示目的,什么也不做,等待一段时间

第一套PO是这样的:

2013-12-10 21:14:43.257 [8620:9407] vi: <BGTableViewWithBackgroundAndTopAndBottom: 0xd36d600; baseClass = UITableView; frame = (0 0; 320 480); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x15d64320>; layer = <CALayer: 0x15d64890>; contentOffset: {0, -64}>
2013-12-10 21:14:43.259 [8620:9407] [vi superview]: <_UIParallaxDimmingView: 0x15f48a40; frame = (0 0; 320 480); opaque = NO; layer = <CALayer: 0x15f79d00>>
2013-12-10 21:14:43.259 [8620:9407] [[vi superview]superview]: <UIView: 0x15850530; frame = (0 0; 320 480); layer = <: 0x15860480>>
2013-12-10 21:14:43.261 [8620:9407] [[[vi superview]superview]superview]: <UIViewControllerWrapperView: 0xcb35660; frame = (0 0; 320 480); autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0xcb392f0>>

第二套PO展示

2013-12-10 21:22:26.145 [8620:9407] vi: <BGTableViewWithBackgroundAndTopAndBottom: 0xd36d600; baseClass = UITableView; frame = (0 0; 320 480); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x15d64320>; layer = <CALayer: 0x15d64890>; contentOffset: {0, -64}>
2013-12-10 21:22:26.145 [8620:9407] [vi superview]: <UIViewControllerWrapperView: 0xcb35660; frame = (0 0; 320 480); autoresize = W+H; layer = <CALayer: 0xcb392f0>>
2013-12-10 21:22:26.146 [8620:9407] [[vi superview]superview]: <UINavigationTransitionView: 0x11cac940; frame = (0 0; 320 480); clipsToBounds = YES; autoresize = W+H; layer = <CALayer: 0x11cad190>>
2013-12-10 21:22:26.146 [8620:9407] [[[vi superview]superview]superview]: <UILayoutContainerView: 0x11ca8ef0; frame = (0 0; 320 480); autoresize = W+H; gestureRecognizers = <NSArray: 0x11cb1070>; layer = <CALayer: 0x11ca69e0>>

看起来 vi,它是一个 UITableView,然后改变了它的父 View 。

为什么?

最佳答案

_UIParalaxDimmingView,从名字上看,有两个用途:

  1. 包装 Controller 后面的模糊内容
  2. 为包裹的 Controller 添加视差效果

我不确定你的 View 层次结构,但我希望在以下情况下使用这种 Controller :

  1. 呈现的 View Controller
  2. UIPopoverController
  3. 在特定的 Controller 转换(动画)期间

如果 blarGetArrayTobeParsedWith 从 Internet 下载数据,则动画运行时和动画结束时的 View 层次结构之间可能存在差异。

关于ios - 神秘的_UIParallaxDimmingView。它是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20497061/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com