Reputation: 384
I want to create segmented control when the user tap the specific portion of the screen just like the OliveTree bible software application makes it.
When the user tap the verses the app, it automatically shows the segmented controls right above the tap portion or like the copy,select,paste segmented control in iphone.
How to do this?
Thanks in advance.
Upvotes: 0
Views: 294
Reputation: 1088
You want to use the UIMenuController
class. You can use a UILongPressGestureRecognizer
to trigger this, and make your class the first responder and setup the UIMenuController
accordingly.
Here is one example: UIMenuController Custom Items
And here is apple docs: http://developer.apple.com/library/iOS/#documentation/iPhone/Reference/UIMenuController_Class/UIMenuController.html
Upvotes: 1