小编Meh*_*kar的帖子

打开CV iOS安装

我正在我的系统中安装opencv以下命令由open cv http://docs.opencv.org/2.4/doc/tutorials/introduction/ios_install/ios_install.html给出. 我收到此错误请让我知道我是什么失踪.

anil-Mac-2s-Mac-mini:opencv pws-mac-2$ python platforms/ios/build_framework.py ios
Executing: ['cmake', '-GXcode', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_TOOLCHAIN_FILE=/Users/pws-mac-2/Desktop/opencv/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DCMAKE_INSTALL_PREFIX=install', '-DENABLE_NEON=ON', '/Users/pws-mac-2/Desktop/opencv', '-DCMAKE_C_FLAGS=-fembed-bitcode', '-DCMAKE_CXX_FLAGS=-fembed-bitcode'] in /Users/pws-mac-2/Desktop/opencv/ios/build/armv7-iPhoneOS

============================================================
ERROR: [Errno 2] No such file or directory
============================================================
Traceback (most recent call last):
File "platforms/ios/build_framework.py", line 183, in <module>
b.build(args.out)
File "platforms/ios/build_framework.py", line 87, in build
self.buildOne(t[0], t[1], mainBD, cmake_flags)
File "platforms/ios/build_framework.py", line 105, in buildOne
execute(cmakecmd, cwd = builddir)
File "platforms/ios/build_framework.py", line 34, in execute
retcode = check_call(cmd, cwd = cwd)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 535, …
Run Code Online (Sandbox Code Playgroud)

iphone opencv image-processing ios opencv4ios

8
推荐指数
2
解决办法
1676
查看次数

禁用时更新UIBarbuttonItem字体 - iOS 11

在iOS 10中,禁用和启用uibarbuttonitem的字体保持不变,只有颜色不同.但是,在我在具有ios 11的设备上安装我的应用程序后,禁用模式的字体会更新(显示系统字体),而在启用模式下,它显示我设置的正确字体.

因此,对于iOS 11的情况,我如何设置禁用模式的字体以保持应用程序的一致性.

fonts uibarbuttonitem ios ios11 xcode9

8
推荐指数
1
解决办法
938
查看次数

用于启动Google地图的网址架构在iOS 9中投放警告但也无法正常工作

以下代码在iOS 8.4及更早版本中运行良好,但是从iOS 9.0开始,它false始终会发出警告.

[[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"comgooglemaps-x-callback://"]]
Run Code Online (Sandbox Code Playgroud)

警告如下:

-canOpenURL: failed for URL: "comgooglemaps-x-callback://" - error: "This app is not allowed to query for scheme comgooglemaps-x-callback"
Run Code Online (Sandbox Code Playgroud)

有没有人知道,为什么它在iOS 9中失败以及为什么抛出错误This app is not allowed to query for scheme comgooglemaps-x-callback,是否需要查询它的任何权限?

编辑

我在info.plist中添加了以下项目,但它仍然存在同样的问题.

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>comgooglemaps</string>
    <string>comgooglemaps-x-callback</string>
</array>
Run Code Online (Sandbox Code Playgroud)

google-maps objective-c url-scheme ios ios9

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

ITMS-90338:非公共 API 使用处理错误 - 以前工作

将二进制文件上传到 后App Store Connect,我收到了 Apple 发来的这封电子邮件:

ITMS-90338:非公共 API 使用 - 应用程序引用 [项目名称] 中的非公共选择器:callWithArguments:、estimatedProgress、frameInfo、getVersion、initWithFrame:configuration:、isMainFrame、navigationDelegate、navigationType、setNavigationDelegate:、setProcessPool:、 targetFrame、toDouble、toString、userContentController。如果源代码中的方法名称与上面列出的私有 Apple API 匹配,则更改方法名称将有助于防止此应用程序在将来的提交中被标记。此外,请注意,上述一个或多个 API 可能位于您的应用程序附带的静态库中。如果是这样,则必须将其删除。有关更多信息,请访问技术支持信息:http://developer.apple.com/support/technical/

但是,除了内部版本号从 增加到 之外1.21.2.1这与之前上传的(并且是实时的)完全相同的二进制文件。

我已经检查了 StackOverflow 上的其他问题,例如thisthis,但通常涉及第三方 SDK。

我完全感到困惑,因为我在项目的任何地方根本不使用这些方法名称......

这是刚刚发布的 iOS 16 的问题吗?谢谢。

xcode app-store-connect ios16

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

卷曲响应说"不支持HTTP版本",错误505

我使用curl发出请求,响应说不支持HTTP版本,错误505.支持HTTP版本的步骤是什么.

谷歌搜索后,我应该使用curl --http2.0使其工作,但我的卷曲版本不支持该选项,因为它是在curl 7.33中添加,而我使用curl与版本:curl 7.19.7 (x86_64-redhat-linux-gnu)libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2

现在,我应该升级我的卷曲还是有任何其他方式来支持我或我在我的请求中遗漏了一些东西(抱歉,但我无法显示请求).

如果我需要升级它,那么请指定我如何将curl升级到版本7.33.0的方式,我没有得到任何正确的方法来做到这一点.

linux command-line curl http version

6
推荐指数
3
解决办法
2万
查看次数

在curl 7.33.0中使用--http2.0选项会提供不支持的协议

我使用的CentOS 6.2,我需要在服务器请求一个使用卷曲--http2.0,但我是有7.19.6,看后http://curl.haxx.se/docs/manpage.html给我认为--http2.0选项仅支持curl 7.33.0,所以为了解决这个问题,我按照http://www.linuxfromscratch.org/blfs/view/svn中的步骤安装了curl 7.33.0 . /basicnet/curl.html 安装curl后,我试图使用它,但它仍然给我错误curl(1):不支持的协议,我已经检查了我的卷曲版本使用:curl --version这是给我 :

curl 7.33.0 (x86_64-unknown-linux-gnu) libcurl/7.33.0 OpenSSL/1.0.0 zlib/1.2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz 
Run Code Online (Sandbox Code Playgroud)

我需要使用这个--http2.0,但没有得到任何我能做到的事情吗?由于curl 7.19已经安装并且我重新安装了更高版本的curl,这是否有任何问题?

linux curl http2 nghttp2

6
推荐指数
1
解决办法
6874
查看次数

匹配模板imge(缩放)到Main /放大图像

我想找到/检查主图像中的subImage /模板图像,并想知道它的坐标,

我使用了以下链接中给出的代码来实现它,

检查iOS中图像中子图像的存在

如果模板图像的大小与较大图像的匹配部分的大小完全相同,则它工作正常.

但是如果子图像按比例缩小或放大而不是匹配较大图像的一部分,则不能正确地给出结果.

opencv image-comparison machine-learning computer-vision template-matching

5
推荐指数
1
解决办法
2352
查看次数

应用商店上的应用大小比上传的应用大小大 7 倍

当我将我的 iOS 应用上传到应用商店时,ipa 大小为32 MB。现在我的应用程序上线了,现在我在应用程序商店检查我的应用程序大小,它在 iphone 6 上显示237 MB,当我在我的 PC 上的浏览​​器中打开应用程序链接时显示252 MB大小。

为什么应用程序的大小差异如此之大。有什么建议?

app-store itunes-store ios ipa app-store-connect

5
推荐指数
1
解决办法
1946
查看次数

使用NSPredicate进行过滤,用于数组内部数组的数组计数

我有以下格式的数组

[
   {
      "xyz" : [Array with different values];
      ... many more keys            
   },
   {
     .. same as above dictionary
   }
   ... many more dictionaries
]
Run Code Online (Sandbox Code Playgroud)

在这里看,我有主要的字典数组,其中每个字典有不同的键,其中有"xyz"键,其值也是一个数组.现在我想要那些字典,xyz的数组必须有> 2.

现在我尝试了以下谓词:

NSPredicate *predicate = [NSPredicate predicateWithFormat:@"xyz.count>2"];
NSArray *filteredArray = [resultArray filteredArrayUsingPredicate:predicate];
Run Code Online (Sandbox Code Playgroud)

但这给了我这样的错误, xyz is not key-value complaint for key "count"

objective-c nspredicate ios

5
推荐指数
1
解决办法
971
查看次数

UIStackView - 使用动画隐藏和折叠子视图

我试图像这样隐藏UIStackView的子视图:

UIViewPropertyAnimator.runningPropertyAnimator(withDuration: 2.0, 
      delay: 0, options: [.curveEaseOut], animations: {
    self.label.isHidden = true
    self.label.alpha = 0.0
    self.stackView.layoutIfNeeded()
})
Run Code Online (Sandbox Code Playgroud)

但是,使用此代码时标签会立即消失.我怀疑这是因为设置isHidden为true,这是折叠所必需的.

有没有办法如何隐藏和折叠UIStackView的动画子菜单?或者根本不使用UIStackView可能会更好?

ios swift uistackview

5
推荐指数
1
解决办法
3450
查看次数