Issue with dictation and UITextfield - uitextfield

On tvOS 9.2, I have an issue when setting the UITextField keyboard type to UIKeyboardTypeNumberPad.
It seems when you start dictation, no input is added. Is this a bug? Has anyone encountered this?

Related

Hover over IBOutlets to find corresponding item in the Main Storyboard in Xcode (Swift)

I'm not totally sure but I thought it was possible in the past to find the corresponding interface element in the storyboard while hovering over the circle in front of an IBOutlet in the code view while you are in the Assistent Editor. I found a screenshot of an older version of Xcode.
But this somehow doesn't work anymore (Xcode 7.1.1 7B1005, Xcode 7.2 beta 4 7C62b and 10.10.5)
Is there another way to quickly find the connection between IBOutlets and their interface element except for their names?
Try updating your Xcode to Xcode7, because it's working on that

How to trigger button action on leftMouseDown in Swift, Mac OSX, Cocoa

I want to trigger a button on left mouse down in my mac osx app using swift.
This is the way to do it in Objective-C
[myButton sendActionOn:NSLeftMouseDownMask];
I can't figure out how to do it in Swift. Can anybody help me out with my problem?
Thanks!
After a bit of fiddling in Xcode, this is what worked for me (Swift 2.0):
myButton.sendActionOn(Int(NSEventMask.LeftMouseDownMask.rawValue))

Xcode 6 Beta 2 - iOS Simulator error and elements rearranged

I am new to Xcode 6 and Swift, so I was checking it out and crafting a simple app but I encountered several problems:
When I run my app the keyboard does not react to whenever I "press" (click since I am in the simulator) in the text field. That is, the keyboard does not show up.
The app's elements in the storyboard TOTALLY rearrange sometimes when I mess around with the width and height of the storyboard and choose an different device for the iOS simulator.
All my problems and (little) code I've written is as shown:
I would appreciate any tips/help you guys can give me!
Thank you in advance!
Jack.
I have had similar issue some times on simulator, use ⌘+K or Hardware > Keyboard > Toggle Software Keyboard to prompt keyboard.
When change width and height of storyboard, examine closely the the descriptions (width, height, portrait, landscape) in the popup, I suggest choose the width and height that matches your device and orientation.
Hope this helps.
It is because of auto layout. Here is a link to guide you through.
Auto Layout Guide

iOS simulator not displaying labels from storyboard

iPhone simulator is not showing some of the labels properly. Has anyone else experienced this? Does anyone know how to fix it? I also noticed that if I drag the buttons too quickly, xcode would crash randomly...
Thanks
I have come across this issue recently and it was a weird bug. For whatever reason, the x/y axis was off in what I was seeing in Storyboard. So the UILabel and UITextfield I had were being displayed behind my NavigaionBar. I adjusted the x/y values in the size inspector on the right side pane of Xcode and it worked perfectly. Those value should be an accurate representation of the placement of storyboard objects.
Not sure about the quick dragging, sounds like an Xcode issue that may be fixed by now.

WebView in Cocoa not accepting keystrokes?

I'm working on embedding a WebView in Cocoa. I have the basic view up and running, but the problem I'm facing is when I type using either the keyboard or the on-screen keyboard, I get a beep from my Mac and none of the characters are actually shown in the Web view's text field.
I've been going through the web view's reference guide from Apple, but couldn't find anything related to this.
Any help is much appreciated!
Thanks,
Teja.
Omz's comment solved the issue for me. I changed my NSWindow styleMask to a style that can become a key window:
window.styleMask = NSTitledWindowMask

Resources