小编War*_*ams的帖子

HW kbd无法设置(null)键盘焦点ios

在我的iOS应用崩溃日志中,我发现了以下声明:

HW kbd Failed to set (null) as keyboard focus ios
Run Code Online (Sandbox Code Playgroud)

有谁知道这是什么以及如何解决它?

crash-reports xamarin.ios uikeyboard ios

66
推荐指数
1
解决办法
5783
查看次数

使用Speech kit ios时,由于未被捕获的应用程序崩溃而终止应用程序

我在实现语音文本时遇到了这个错误:

因未捕获的异常'com.apple.coreaudio.avfaudio'而终止应用程序,原因:'必需条件为false:_recordingTap == nil'

和:

错误:[0x1b2df5c40]> avae> AVAudioNode.mm:565:CreateRecordingTap:必需条件为false:_recordingTap == nil

这是我的viewController的代码:

public class ViewController: UIViewController, SFSpeechRecognizerDelegate {
// MARK: Properties

private let speechRecognizer = SFSpeechRecognizer(locale: Locale(identifier: "en-US"))!

private var recognitionRequest: SFSpeechAudioBufferRecognitionRequest?

private var recognitionTask: SFSpeechRecognitionTask?

private let audioEngine = AVAudioEngine()

@IBOutlet var textView : UITextView!

@IBOutlet var recordButton : UIButton!

// MARK: UIViewController

public override func viewDidLoad() {
    super.viewDidLoad()

    // Disable the record buttons until authorization has been granted.
    recordButton.isEnabled = false
}

override public func viewDidAppear(_ animated: Bool) { …
Run Code Online (Sandbox Code Playgroud)

ios swift sfspeechrecognizer

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

Swift 5.0编译器无法导入使用Swift 4.2编译的Xcode 10.2模块

我刚刚将Xcode 10.1更新为Xcode 10.2,之后,当我尝试构建我的应用程序时,发现一个错误提示。使用Swift 4.2编译的模块不能由Swift 5.0编译器导入。

/myProjectFolderPath/myProjectName/ViewControllers/FeedbackVC/SupportViewController.swift:11:8: Module compiled with Swift 4.2 cannot be imported by the Swift 5.0 compiler: /myProjectFolderPath/Pods/ZendeskSDK/ZendeskSDK/4.2.1/ZendeskSDK.framework/Modules/ZendeskSDK.swiftmodule/x86_64.swiftmodule
Run Code Online (Sandbox Code Playgroud)

我通过cocoapods集成的ZendeskSDK出现了问题。

需要帮助和事先感谢。

ios zendesk swift4.2 swift5 xcode10.2

6
推荐指数
0
解决办法
2281
查看次数

找到网络wifi路由器ios上的所有工作IP

我正在开发一个项目,我需要使用目标c在xcode中获取网络上的所有活动IP地址.如果有人知道如何获得所有这些IP,那么请指导我.提前致谢.

networking ios

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

TWTRTweetTableViewCell TwitterKit ios中没有显示图像和媒体

我使用twitter api 1.1获取推文并在TWTRTweetTableViewCell中显示它们,但TWTRTweetView显示媒体/图像的空间,但不显示文本的图像/媒体显示在TWTRTweetView中.

用于显示推文

TWTRTweet *tweet = [self.arraySocialPosts objectAtIndex:indexPath.row];

TWTRTweetTableViewCell *cell = (TWTRTweetTableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"TweetCell" forIndexPath:indexPath];
[cell configureWithTweet:tweet];
cell.tweetView.delegate = self;
return cell;
Run Code Online (Sandbox Code Playgroud)

以及获取推文

NSArray *responseJSON = [NSJSONSerialization
                             JSONObjectWithData:responseData
                             options:NSJSONReadingAllowFragments
                             error:&jsonError];

if (jsonError)
{
   NSString* errorMessage = [NSString stringWithFormat:@"There was an error reading your Twitter feed. %@",[jsonError localizedDescription]];

   [[AppDelegate instance] showError:errorMessage];
}
else
{
   dispatch_async(dispatch_get_main_queue(), ^{           
   if(completion){
      NSArray *tweetsArray = [TWTRTweet tweetsWithJSONArray:responseJSON]; 
 //(NSArray *)tweetsWithJSONArray:(NSArray *)array
       completion(tweetsArray);
            }
        });
    }
}
}];
Run Code Online (Sandbox Code Playgroud)

当我打印responseJSON时,它包含媒体网址.

twitter ios twitter-oauth

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

UINavigationBar后退按钮在iPhone X iOS 11上不显示

我面临一个问题,当我在iPhone SE模拟器上运行我的应用程序时,它在导航栏上显示后退按钮,如下所示。

在此处输入图片说明

但是,当我在iPhone X,iPhone 8和iPhone 8以及iOS 11和XCode 9上运行相同的应用程序时,导航栏上没有后退按钮,并且它适用于所有ViewController而不适用于特定的ViewController。这是例子

在此处输入图片说明

谁能说出为什么会这样。

uinavigationbar ios11 swift3.2 xcode9

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