Wouldn't you just have 2 segmented controls, but one of them hidden. When selectedindex==1 on the first one, then unhide the second one.
Up vote -1 down vote favorite share g+ share fb share tw.
In one UIViewController, I have a UISegmentedControl. When I select segmented control. Selectedindex==0, it will show a textfield.
When I select segmentedcontrol. Selectedindex==1, it will show another segmented control instead of textfield. How can I do that?
Iphone cocoa-touch iphone-sdk-4.0 uisegmentedcontrol link|improve this question edited Mar 20 at 12:59Stephen Darlington20.4k22861 asked Mar 20 at 11:50Kevin52.
It doesn't let any one understand what you tend to do! – Kuldeep Mar 20 at 12:13 @Kevin, can you please recheck your question description! I am thinking there's some mistake.
I can't understand. – H e m a n g Mar 20 at 12:15 Segmentedcontrol. Selectedindex==0 gives textfield and segmentedcontrol.
Selectedindex==1 gives another segmentedcontrol. – Kevin Mar 20 at 12:30 Post any screenshot, if you can.. – Adil Soomro Mar 20 at 12:30 I've had a go at rephrasing the question. Hopefully it's clearer now.
– Stephen Darlington Mar 20 at 13:00.
(IBAction)yourSegmentControl:(id)sender{ switch ((((UISegmentedControl *)sender). SelectedSegmentIndex)) { case 0: { anothersegment. Hide = YES; yourTextfield.
Hide = NO; break; } case 1: { anothersegment. Hide = NO; yourTextfield. Hide = YES; break; } default: break; } } // Make sure that in your viewDidLoad you initialize your textfield and secondsegmentcontrol //both to hide = YES.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.