custom-keyboard

Check full access for custom keyboard extension

倖福魔咒の 提交于 2019-12-18 12:42:39
问题 I need to check full access for custom keyboard extension. I found this link. How to check the "Allow Full Access" is enabled in iOS 8? It say we can check App group. I have app group called "group.TTT.TGroup". It share access between main app and custom keyboard. Then, I check like this. Problem is that I always have access to that (always has array or error = null). Is it because I am sharing same data? But, if my app use another app group and extension use other app group, I can't

How to make popup like keyboard characters in iOS8 custom keyboard?

放肆的年华 提交于 2019-12-17 22:40:49
问题 I want to create popup in iOS8 custom keyboard as shown below image. Some code are working but can't access outer window of keyboard and occures issue as shown in below image-2 回答1: This what i have done in my custom Keyboard its working //adding pop up when character is tapped - (void)addPopupToButton:(UIButton *)button { CGRect frame,frame1; if(self.view.frame.size.width == 320) { //Keyboard is in Portrait frame = CGRectMake(0, -25, 28, 43); frame1=CGRectMake(0, 0, 28, 43); } else{ /

Custom Keyboard Storyboard with Xcode 8 beta

和自甴很熟 提交于 2019-12-13 09:27:14
问题 I'm having some problems designing my custom keyboard from the storyboard in Xcode 8 beta 6. For some reason when I launch the keyboard on a iOS 10 device this is the result: This is how i design it in the Storyboard, Top View: Bottom View: So it displays only the height of the bottom view. I don't have this problem with iOS 9. Any ideas on what is going wrong? UPDATE : this it's how the keyboard gets loaded in iOS 9: UPDATE 2: Even creating the view programmatically this way in viewDidLoad()

Can a custom keyboard extension communicate with the companion app at runtime?

痞子三分冷 提交于 2019-12-13 09:04:39
问题 Can a custom keyboard communicate with the companion app at runtime? Can a custom keyboard dynamically display content based on states set in the companion app? If so, what API’s/documentation is available for this communication between the extension and app? 回答1: Here is a nice paragraph from the documentation that could get you started in sharing data with your companion app: https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/ExtensibilityPG

CollectionViewCell's IBoutlet is nil in Custom Keyboard Extension

萝らか妹 提交于 2019-12-13 03:13:09
问题 Well, it'd day 5, I have tried everything to make this work. Setup is simple I am trying to write a custom keyboard. Which is having the CollectionView, CollectionViewCell is powered by xib I have one label, which would hold the emoji when running. I did ready every single article here where IBOutlet is nil. Nothing is pointing to the direction that I haven't tried. class CategoryCollectionCell: UICollectionViewCell { @IBOutlet weak var emojiLabel: UILabel! override func awakeFromNib() {

iOS8 Custom Keyboard Settings.bundle does not show up

吃可爱长大的小学妹 提交于 2019-12-13 00:43:54
问题 I added a Settings.bundle to the keyboard target. But when I add the keyboard in the settings, the Items from the Settings.bundle doesn't show up. I had it working once. But this was in Beta 4. -- best regards 回答1: In iOS8.0.2, the settings appear in the General->Keyboard section of the iOS settings app. However, a bug in iOS prevents from reading these values. The solution would be to create a settings screen in your containing app, and read/write the settings to the Shared Container, using

swift ios keyboard extension - long press / press and hold

夙愿已清 提交于 2019-12-12 09:14:14
问题 I need to know how to add long press (press and hold) function to ios custom keyboard extension so that i con show multiple keys to chose one from. expected design my project structure current code for keypress action - code can add the title of the button pressed as a new text into any proxy text field. @IBAction func keypress(sender: UIButton!){ let typedCharacter = sender.titleLabel?.text let proxy = textDocumentProxy as UITextDocumentProxy proxy.insertText(typedCharacter!) } func

How to make custom keyboard extension become first responder again

放肆的年华 提交于 2019-12-12 07:49:18
问题 I am making a custom keyboard extension, and in this keyboard, i have another uitextfield as a search field, so when I type on the custom keyboard, I am not sending the text to the safari's textfield or some chat app's textfield, I am sending the text to the uitextfield search field in the custom keyboard, so I can do some search and then when the search results come back, i am sending the search result to the safari's textfield or some chat app's textfield. So there is a first responder

java.lang.ClassCastException: android.inputmethodservice.KeyboardView cannot be cast to android.view.ViewGroup

隐身守侯 提交于 2019-12-11 14:41:49
问题 I am getting this error while trying to use other layouts inside keyboard view as in my xml file. I don't want my keyboard layout to have rows and keys as in normal keyboard instead i want it to have two buttons on either side at the top inside any parent layout. Also I need a layout inside keyboard view to contain my drawing canvas. I have also tried to put in a layout like this: <?xml version="1.0" encoding="utf-8"?> <android.inputmethodservice.KeyboardView xmlns:android="http://schemas

Access the keychain from iOS keyboard extension

孤街浪徒 提交于 2019-12-11 13:42:38
问题 I wrote some code to share data between an application and an extension. The code works perfectly with "Action Extension" while it fails with "Custom keyboard" extension. Each access to the keychain from the "Custom keyboard" extension ends with the same error status: -25291, errSecNotAvailable, "Key Chain not available" or "Keychain Manager was not loaded". Is there a known limitation on accessing the keychain from a custom keyboard extension ? I did not find anything about that. Regards.