Display tooltip tooltips above ios keyboard

I am new to iOS development. I am trying to create an application such as a spell type in ios 5.1 that has a textView, so if the user presses a keyboard key, the tooltip toolbar goes to the top of the keyboard containing all the sentences, and if the user clicks on one of these sentences it will be displayed in text element.

As it shown on the picture.

enter image description here

I handled the keystroke event and handled all the processing there. Now what I want to do is that I have an NSArray of sentences, and I want to create a proposal toolbar and assign all these sentences from NSArray to this toolbar, and also if the user clicks on any of these sentences, this should be placed in a textView.

I cannot figure out how I should continue this, and which component I should use to create this toobar above the keyboard.

using iOS SDK 5.1 and xcode 4.3

+4
ios objective-c iphone cocoa-touch
May 15 '12 at 5:51
source share
2 answers

You can label the top of the keyboard by making it an inputAccessoryView for any text editing control ( UITextField , UITextView , etc.) that you want it to appear with. See the UITextInputTraits docs for more details .

If you don’t know where to start, by showing words that you can use, you can look at the View Programming Guide or a good book for input into iOS programming.

+3
May 15 '12 at 5:57
source share

You can use the accessory look of the keyboard for this, check this developer with the same code - http://developer.apple.com/library/ios/#samplecode/KeyboardAccessory/Introduction/Intro.html

+1
May 15 '12 at 5:56
source share



All Articles