Created
February 27, 2014 08:45
-
-
Save alekseypotapov-dev/9246558 to your computer and use it in GitHub Desktop.
UISegmentedControl show popover from according segment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGRect frame = [segmentControl frame]; | |
frame =CGRectMake((frame.size.width/No. of segments * [segmentControl selectedSegmentIndex]), 0, frame.size.width/No. of segments, segmentControl.bounds.size.height); | |
[m_PopOver presentPopoverFromRect:frame inView:segmentControl permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment