BigONotation
BigONotation

Reputation: 4538

How to display a popover when user touches and holds a segment in segmented control (iOS)

I need to display a popover with additional options when a user touches (and holds) a segment in UISegmentedControl. How do I:

Thanks!

note a related question is:iPad popover - How do you point to one segment in a segmented control?

Upvotes: 0

Views: 212

Answers (1)

Eddy Liu
Eddy Liu

Reputation: 1461

  1. You would need to create a View with those "Options" you want manually. Or you could use third party library such as this

  2. Add a UILongPressGestureRecognizer to your UIView

  3. Get the position of the touch location and show the popover

Upvotes: 2

Related Questions