Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom keyboard code issue #1

Open
ugol opened this issue Sep 19, 2014 · 3 comments
Open

Custom keyboard code issue #1

ugol opened this issue Sep 19, 2014 · 3 comments

Comments

@ugol
Copy link

ugol commented Sep 19, 2014

The keyboard shows correctly, but when you tap everywhere you got a:

Domain=_UIViewServiceInterfaceErrorDomain Code=3 "The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 3.)" UserInfo=0x17027c540 {Message=Service Connection Interrupted}

Note that I also had to slightly modify the handleTapOnButton func to compile the code on Xcode 6 GA:

func handleTapOnButton(button: UIButton){
     let buttonText = button.titleForState(.Normal)
     if let proxy = textDocumentProxy{
-      proxy.insertText(buttonText)
+      proxy.insertText(buttonText!)
     }
   }
@ugol
Copy link
Author

ugol commented Sep 19, 2014

Additionally, I have no idea on how to debug it, the standard techniques don't work on the custom keyboard code (NSLog neither)

@ugol
Copy link
Author

ugol commented Sep 20, 2014

@vandadnp
Copy link
Owner

Please try this on Xcode 6.1 Beta 2, Apple seems to have fixed this issue.

Please also git fetch the latest code to get the latest code for the handleTapOnButton: method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants