小编Sea*_*len的帖子

IPv6 App Store拒绝

我们的更新今天因ipv6网络连接问题被拒绝了两次.我们的网络代码在之前的版本和当前版本之间没有变化.

该应用程序仅向api.metooapp.io发出https网络请求,该请求已正确配置为ipv6 [ 0 ]并在AWS上的route53后面运行.代码中没有硬编码的IP地址.

即使按照在[ 1 ] 创建ipv6网络的步骤(即拒绝通知中提供的链接)之后,我也无法重现此问题.看起来我不是唯一一个遇到这个问题的人,[ 2 ].

itunesconnect app-store amazon-web-services ios alamofire

88
推荐指数
6
解决办法
4万
查看次数

如何缩放SCNNodes以适合边界框

我正在下载Collada DAE场景并在SceneKit中渲染它们,但无法让下载的节点"适应"其父节点.我主要关心缩放它的y高度以适应父节点.

这是我正在使用的代码:

// Reset everything
node.position = SCNVector3(0, 0, 0)
node.pivot = SCNMatrix4Identity
node.scale = SCNVector3(1, 1, 1)

// Calculate absolute bounding box
let (min, max) = node.boundingBox
let size = max - min

// Get the biggest dimension of the node
guard let scaleRef = [size.x, size.y, size.z].max() else {
    return
}

// Desired bounding box is of size SCNVector3(0.4, 0.4, 0.4)
let parentSize: Float = 0.4

let ratio = (parentSize/scaleRef)
node.scale = SCNVector3(node.scale.x * ratio, node.scale.y * …
Run Code Online (Sandbox Code Playgroud)

3d ios scenekit swift arkit

7
推荐指数
1
解决办法
860
查看次数