Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

xenep

macrumors newbie
Original poster
Mar 24, 2009
6
0
Hi all,

i am using a select tag in a UIWebView in my application but facing with some problems. (maybe they are not the problems but i m soo new for iphone programming)

1. when the select box is clicked a UIPickerView opens, is there any way to disable it?
2. when the select box is clicked it gets lost and when i click to its place again it comes up, is there any way to stop this? cause i always want it to be shown.

here is my code:
Code:
webView = [[UIWebView alloc] initWithFrame:cellRectangle];
NSString *content = [NSString stringWithString:@""];
content = [content stringByAppendingString:@"<select style='width:100%; height:100%'>"];
for(int i = 0; i<[seasons count]; i++){
	Season *aSeason = [seasons objectAtIndex:i];
	content = [content stringByAppendingString:@"<option"];
	if(aSeason.n_isCurrent = 1) content = [content stringByAppendingString:@" selected=\"yes\""];
	content = [content stringByAppendingString:@">"];
	content = [content stringByAppendingString:aSeason.c_Season];
	content = [content stringByAppendingString:@"</option>"];
}
content = [content stringByAppendingString:@"</select>"];
		
webView.backgroundColor = [UIColor clearColor];
webView.scalesPageToFit = NO;
[webView setOpaque:NO];
[webView loadHTMLString:content baseURL:nil];

thanx in advance.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.