segmented control in iPhone application -


I have put UIsegment control in my iPhone application. To load the pages I have this function - SegmentSelected (Zero) Segmented: (id)

) SegmentedCntl {NSLog (@ "Selected segment index =% d", [segmentedCntl selectedSegmentIndex]);
integer index = [segmentedCntl selectedSegmentIndex];

  ViewController * ViewController = (ViewController *) controller; NSString * xPath = [NSString stringWithFormat: @ "item [% d] / a", (index + 1)]; NSArray * items = [element nodesforxpath: xpath error: zero]; If ([Item count]> 0) {CXMLElement * itemElement = (CXMLElement *) [Item objectAtIndex: 0]; NSString * url = [[for item element attribute: @ "href"] stringValue]; NSLog (@ "URL" & amp; amp; & amp; & amp; & amp; & amp; & amp; & amp; & amp; & amp; & amp; & amp; & amp; & amp; amp; ; & Amp;% @ ", URL); If ([url startsWith: @ "#"]) {} else {NSString * fullurl = [URLLoader getURL: url]; If (fullURL! = Zero) {if ((fullURL contains: @ "?"]) {FullURL = [fullURL stringByAppendingString: @ "& iPhoneMode = app"]; } Else {fullURL = [fullURL stringByAppendingString: @ "iPhoneMode = app"]; } [ViewController showURL: fullURL cacheDuration: kPageCacheDuartion]; }}}   

}

but segmentControl clickable. Please help me solve this problem


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -