I want to create a frame and fill it with a segmented control. How would i do this???
+1
A:
If by filling a frame with a segmented control, you mean you want to add a segmented control as a subview of another view with a specific frame, you could do this:
CGRect frame = CGRectMake(X_ORIGIN,Y_ORIGIN,WIDTH,HEIGHT);
UISegmentedControl * seg = [[UISegmentedControl alloc] initWithFrame:frame];
[viewYouWantToAddTheControlTo addSubview:seg];
[seg release];
Does that help?
Kevlar
2009-05-02 02:58:44
I want to put the segmented in the frame
zPesk
2009-05-02 03:35:49
this code does that
Roger Nolan
2009-05-02 05:46:58