Comment puis-je ajouter une barre d'outils au-dessus du clavier?

J'ai créé un UIToolBar par programme et a ajouté une UITextField sur elle. Maintenant, j'ai besoin de la barre d'outils au-dessus du clavier lorsque je clique sur un autre champ de texte.

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];