Now, i'm developing a third party keyboard, and meet a problem that i want to get the candidate view of keyboard like the system keyboard, but cannot find the property or method to get it.
so i want to use these two method to solve the problem,
one is to change the UIInputView's size, after i saw this, "In addition, it is not possible to display key artwork above the top row, as the system keyboard does on iPhone when you tap a key in the top row." i found it's impossible.
[link] iOS 8 Custom Keyboard
the second way is to find a property or method to get the candidate, i try to use inputAccessoryView as the candidate panel, but it's binding with UITextView and UITextField, it's belongs to the application, not custom keyboard.
here is the code
CGRect accessFrame = CGRectMake(0.0, 0.0, 768.0, 77.0);
inputAccessoryView = [[UIView alloc] initWithFrame:accessFrame];
inputAccessoryView.backgroundColor = [UIColor blueColor];
UIButton *compButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
compButton.frame = CGRectMake(313.0, 20.0, 158.0, 37.0);
[compButton setTitle: @"Word Completions" forState:UIControlStateNormal];
[compButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
[compButton addTarget:self action:@selector(completeCurrentWord:)
forControlEvents:UIControlEventTouchUpInside];
[inputAccessoryView addSubview:compButton];