Embedding a keyboard (inputView) using a UITableViewCell

I am looking for the most direct way to do this so that when the user UITableViewCellclicks the keyboard appears. I want to use a custom keyboard ( UIPickerView), and I prefer to style the cell UITableViewCellStyleValue2. I can't seem to find a very direct way to do this. I have a navigation bar at the top and I hope the buttons on this change too ...

Thank!

+3
source share
1 answer

First of all, to achieve this, you will have to process the UIPickerView custom animation moving up and down. They are controlled automatically by controls that automatically need it (UITextField, UITextView, etc.).

So when your views load, you will want to create and customize your collector, and then move its Y coordinate to CGRectGetMaxY([[UIScreen mainScreen] applicationFrame]);

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath , . , , , , , , ( , , FirstResponder FirstResponder).

, , , -. , , , tableViewController , . , , .

+1

Source: https://habr.com/ru/post/1776137/


All Articles