小编IKK*_*KKA的帖子

在将第三方库添加到iPhone应用程序时,如何设置"标题搜索路径"的路径

我想在我的项目中添加第三方库Speech-To-TextXcode.我只是xcodeproj在我的iPhone项目中拖动文件.然后我按照Target Dependencies,Link Binary和库之类的步骤进行操作,并设置Header Search路径.但是我对如何正确设置Header搜索路径感到困惑.然后我导入#import SpeechToTextModule.h'那个时候我得到错误就像SpeechToTextModule.h 找不到文件.请帮助我.

提前致谢!!!

iphone objective-c ios xcode4.2

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

如何在 swift 中打印或记录 UIView 框架的值?

在我的应用程序中使用了一个 UILabel 控件。我想在我的控制台中打印该标签的框架(x,y,宽度,高度)值。在目标 ci 中使用 NSStringFromCGRect 函数来打印这些值。如何在我的控制台中获取这些值迅速吗?请帮助我。

iphone uilabel ios xcode7 swift2

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

如何查看Alamofire库版本?

我使用cocoapod实现了Alamofire.我正在使用Xcode7.3.1.我的podfile类似于以下方式

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'ALamoWeather' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!
  # Pods for ALamoWeather
pod 'Alamofire'
end
Run Code Online (Sandbox Code Playgroud)

如何查看使用哪个Alamofire库版本?请帮我.

iphone ios swift alamofire xcode7.3

5
推荐指数
2
解决办法
3144
查看次数

iOS 中 didReceiveRemoteNotification 的两个委托方法有什么区别?

我已经Push Notification在我的iOS应用程序中实现了。我可以看到两种delegate方法didReceiveRemoteNotification,如下所示:这两种方法有什么区别?

\n\n
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { }\n
Run Code Online (Sandbox Code Playgroud)\n\n

\n\n
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo\n\xc2\xa0 \xc2\xa0 fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {\n\xc2\xa0 completionHandler(UIBackgroundFetchResultNewData);\n}\n
Run Code Online (Sandbox Code Playgroud)\n

objective-c push-notification ios

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

如何解决 iOS 中的“bad interpreter: No such file or directory”错误?

我在我的 iOS 应用程序中尝试使用 Fabric 进行 crashlytics。我通过 cocoapod 安装了 Fabric。我的运行脚本看起来像这样 “${PODS_ROOT}/Fabric/run” 5fff878b48f0c239da398853befb1559ccdd7717 3a66fd28662c398358b9510f79a16f0fe7f6a816f8c8c8c8c8e

但我收到以下错误。

Pods/Fabric/run: /bin/sh^M: bad interpreter: No such file or directory

如何解决这个问题?请帮我

iphone ios crashlytics swift

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

如何使用 EXPO/react-native 在 iOS 中实现 RTL

我在我的 React Native 应用程序文件名中添加了两个本地化文件(阿拉伯语和英语),例如ar.jsonen.json

\n\n

我的en.json文件看起来像

\n\n
"fieldNames": {\n    "enterEmail" : "Enter the email address"\n  },\n
Run Code Online (Sandbox Code Playgroud)\n\n

我的ar.json文件看起来像

\n\n
"fieldNames": {\n    "enterEmail" : "\xd8\xa3\xd8\xaf\xd8\xae\xd9\x84 \xd8\xb9\xd9\x86\xd9\x88\xd8\xa7\xd9\x86 \xd8\xa7\xd9\x84\xd8\xa8\xd8\xb1\xd9\x8a\xd8\xaf \xd8\xa7\xd9\x84\xd8\xa5\xd9\x84\xd9\x83\xd8\xaa\xd8\xb1\xd9\x88\xd9\x86\xd9\x8a"\n  },\n
Run Code Online (Sandbox Code Playgroud)\n\n

我的string/index.js文件如下所示:

\n\n
import * as Localization from \'expo-localization\';\nimport i18n from \'i18n-js\';\n\nimport en from \'./en.json\';\nimport ar from \'./ar.json\';\n\ni18n.fallbacks = true;\ni18n.translations = { en, ar };\ni18n.locale = Localization.locale;\n\nexport const string = value => i18n.t(value);\n\nexport default i18n;\n
Run Code Online (Sandbox Code Playgroud)\n\n

我使用的文件之一如下

\n\n
<Text>{string(\'fieldNames.enterEmail\')}</Text>\n
Run Code Online (Sandbox Code Playgroud)\n\n

两种语言的本地化都运行良好。

\n\n …

android ios reactjs react-native expo

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

无法创建新的客户端ID(适用于iOS sdk中的google plus signin)

我无法为我的iOS应用程序创建oAuth客户端ID.我的应用程序不是在Apple iTunes App Store中创建的,因为我无法输入AppStore ID.这里我附加两个屏幕截图.第一个是创建客户端ID表单,第二个是我的错误屏幕截图.如何解决这个问题?请帮帮我..

在此输入图像描述

我得到这样的错误....

iphone ios google-plus xcode5

4
推荐指数
1
解决办法
1116
查看次数

错误的ERR!退出并显示错误代码:128

我使用以下链接react-native-vector-icons在我的反应本机项目中尝试了'RNVectorIcons'包.我在终端中使用了pod install命令.但是我在终端窗口中收到以下错误.

Analyzing dependencies
Fetching podspec for `RNVectorIcons` from `../node_modules/react-native-vector-icons`
Downloading dependencies
Installing RNVectorIcons (4.6.0)
Installing React (0.11.0)
[!] /bin/bash -c 
set -e
npm install --production

npm WARN deprecated connect@2.8.3: connect 2.x series is deprecated
npm WARN deprecated babel-core@5.8.21: Babel 5 is no longer being maintained. Upgrade to Babel 6.
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated minimatch@2.0.10: Please update to minimatch …
Run Code Online (Sandbox Code Playgroud)

ios reactjs react-native

4
推荐指数
1
解决办法
4718
查看次数

由于Appstore的Info.plist文件中缺少目的字符串,因此拒绝响应本机iOS应用

由于info.plist文件中缺少目的字符串,我从appstore收到了以下邮件。

这是同时支持iOS和Android的React Native应用程序。

我的应用未请求访问用户的日历。

我认为该描述仅在您实际请求许可时才是强制性的,或者即使我从不要求查看用户日历,这些描述也是必需的。

Info.plist文件中缺少目的字符串-您的应用代码引用了一个或多个访问敏感用户数据的API。该应用程序的Info.plist文件应包含一个NSCalendarsUsageDescription密钥,该密钥具有面向用户的目的字符串,可以清晰,完整地说明您的应用程序为何需要数据。从2019年春季开始,所有提交给App Store的访问用户数据的应用都必须包含目的字符串。如果您使用的是外部库或SDK,则它们可能会引用需要目的字符串的API。尽管您的应用可能未使用这些API,但仍然需要一个目的字符串。您可以与库或SDK的开发人员联系,并要求他们发布不包含API的代码版本。了解更多信息(https://developer.apple。)。

iphone app-store ios react-native

4
推荐指数
1
解决办法
2525
查看次数

如何为iOS中的特定设备设置顶级空间约束?

我在用Xcode7.3.1.我已经Autolayout在我的屏幕上进行了设置.它在iphone5,6等上工作得很好.但是iphone4s无法正常看到屏幕.这个屏幕我将顶部空间添加到150.但是当我运行应用程序时,底部部分无法显示.iphone4s这里我将屏幕看起来像iphone4S.如何解决这个问题?

在此输入图像描述

顶部空间看起来像在xib中

在此输入图像描述

iphone xcode constraints ios autolayout

3
推荐指数
1
解决办法
470
查看次数