objective c - iOS UISegmentedControl cannot positon programatically -


I can not change the location of UISegmentedControl if I do this:

  segControl2.frame = CGRectMake (segControl1.origin.x, segControl2.origin.y, segControl2.size.width, segControl2.size.height);   

Nothing really changes, and everyone says that the frame of control should change, but it is not really.

cgtff frame = [[USScreen main screen] border]; UISegmentedControl * segControl = [[UISegmentedControl] initWithItems: [NSArray alloc] initWithObjects: @ "one", @ "two", @ "three", zero]; SegControl.frame = CGRectMake (frame.organ.50, frame.corein + 50, segControl.size.width, segControl.size.height); [Adviewview: see cajccontrol];

should work fine now.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -