Як я можу додати панель інструментів над клавіатурою?
Я створив UIToolBarпрограмну програму та додав до UITextFieldнеї. Тепер мені потрібно, щоб ця панель інструментів знаходилася над клавіатурою, коли я натискаю в іншому текстовому полі. UIToolbar *toolBar=[[UIToolbar alloc]initWithFrame:CGRectMake(0,400, 320, 60)]; [self.view addSubview:toolBar]; UITextField *txtView=[[UITextField alloc]initWithFrame:CGRectMake(0, 400, 260, 30)]; txtView.backgroundColor =[UIColor grayColor]; txtView.placeholder=@"Address"; UIBarButtonItem *txtfieldItem=[[UIBarButtonItem alloc]initWithCustomView:txtView]; toolBar.items =[NSArray arrayWithObject:txtfieldItem];