ios8

Grey out return key programmatically

妖精的绣舞 提交于 2020-08-26 10:45:49
问题 I am looking to enable the return key of a UITextField keyboard if (and only if) the user inputs a valid email address. I have tried a solution that dates back from 2009 which uses the private method setReturnKeyEnabled . Unfortunately, this method does not seem to exist anymore: No known instance method for selector 'setReturnKeyEnabled:' How can I programmatically enable and disable the return key of a keyboard? 回答1: All the other solutions do not answer the question. OP wants to "gray" out

Trouble hooking up AVAudioUnitEffect with AVAudioEngine

隐身守侯 提交于 2020-08-25 04:02:29
问题 I've been poking around with AVAudioEngine and I'm having trouble integrating AVAudioUnitEffect classes. For example, with AVAudioUnitDelay... @implementation ViewController { AVAudioEngine *engine; AVAudioPlayerNode *player; } ... - (IBAction)playButtonHit:(id)sender { if (!player){ NSURL *bandsURL = [[NSBundle mainBundle] URLForResource:@"Bands With Managers" withExtension:@"mp3"]; AVAudioFile *file = [[AVAudioFile alloc] initForReading:bandsURL error:nil]; engine = [[AVAudioEngine alloc]

Using a launch screen (.xib) stops scaling

﹥>﹥吖頭↗ 提交于 2020-07-08 19:28:03
问题 It's my understanding that apps for iOS 8 should have a storyboard file as launch screen rather than an image. I've created a really simple launch screen file that has any width and any height, and has one label of plain text reading "placeholder" and set it as my launch screen. However, when I try to run my app on the iPhone 6 and 6 Plus simulators, there's black bars around the background and the buttons on the main menu are out of place. The problem doesn't seem to be present in the 5s or

Using a launch screen (.xib) stops scaling

笑着哭i 提交于 2020-07-08 19:26:31
问题 It's my understanding that apps for iOS 8 should have a storyboard file as launch screen rather than an image. I've created a really simple launch screen file that has any width and any height, and has one label of plain text reading "placeholder" and set it as my launch screen. However, when I try to run my app on the iPhone 6 and 6 Plus simulators, there's black bars around the background and the buttons on the main menu are out of place. The problem doesn't seem to be present in the 5s or

How to stop Text to Speech when Voiceover is speaking, or vice versa in Swift?

别来无恙 提交于 2020-07-05 09:18:39
问题 Right now, my app implements AVSpeechSynthesizer to read out instructions for each screen. The app also takes into consideration when Voiceover accessibility feature is enabled. The problem I'm facing now is that the text to speech feature overlaps with the voiceover feature. Is there a solution to detect that when a user navigates to another element on the screen, TTS stops speaking, or when TTS is speaking, voiceover doesn't speak until TTS finishes (the former is preferred though). The

How to stop Text to Speech when Voiceover is speaking, or vice versa in Swift?

删除回忆录丶 提交于 2020-07-05 09:18:17
问题 Right now, my app implements AVSpeechSynthesizer to read out instructions for each screen. The app also takes into consideration when Voiceover accessibility feature is enabled. The problem I'm facing now is that the text to speech feature overlaps with the voiceover feature. Is there a solution to detect that when a user navigates to another element on the screen, TTS stops speaking, or when TTS is speaking, voiceover doesn't speak until TTS finishes (the former is preferred though). The

iOS 8.1.3 - Enterprise Distribution - Application is missing the application-identifier entitlement

与世无争的帅哥 提交于 2020-07-05 02:49:46
问题 I'm having so much problems with Enterpsie Distribution on iOS 8.1.3. I managed to fix MOST of my installations which were giving this error: Ignore manifest download, already have bundleID with this answer: https://stackoverflow.com/a/25948839/517688 Which basically tells you to fake the bundleID on the server manifest.plist. But on some of my test devices I'm getting a new error after the change: Error Domain=MIInstallerErrorDomain Code=63 "Application is missing the application-identifier

iOS 8.1.3 - Enterprise Distribution - Application is missing the application-identifier entitlement

江枫思渺然 提交于 2020-07-05 02:49:10
问题 I'm having so much problems with Enterpsie Distribution on iOS 8.1.3. I managed to fix MOST of my installations which were giving this error: Ignore manifest download, already have bundleID with this answer: https://stackoverflow.com/a/25948839/517688 Which basically tells you to fake the bundleID on the server manifest.plist. But on some of my test devices I'm getting a new error after the change: Error Domain=MIInstallerErrorDomain Code=63 "Application is missing the application-identifier