Tuesday, 1 April 2014

No movement from IBOutlet in a popover

I'm struggling with a following problem. we put a stepper and a calm
domain in a popover that is presented when clicking on a segmented
control. Sadly, a controls are indeed doing nothing, conjunction
arrangement any communication nor notifying any event. we attempted
attaching an eventuality listener to a perspective that hosts a controls
and a daub events are justly told so it seems that a perspective is
greatest whenever a popover is shown. Following is a formula used for
presenting a popover.CGSize distance = CGSizeMake(300, 150);CGRect support
= [sender frame];frame = CGRectMake((frame.size.width / [sender
numberOfSegments] * [sender selectedSegmentIndex]), 0,
frame.size.width / [sender numberOfSegments],
sender.bounds.size.height);customControlPopover = [[UIPopoverController
alloc]
initWithContentViewController:customControlViewController];[customControlPopover
presentPopoverFromRect:frame inView:sender
permittedArrowDirections:UIPopoverArrowDirectionDown
animated:TRUE];[customControlPopover setPopoverContentSize:size
animated:NO];customControlPopover.delegate =
self;customControlPopover.passthroughViews =
nil;customControlPopover.backgroundColor =
customControlViewController.view.backgroundColor;where sender is tangible
as (UISegmentedControl*)sender.

No comments:

Post a Comment