Hi All,
I am using loadHTMLString to load some images and text data on the UIView, if the text string is very long then that should be scroll on the view. This works fine with 2.2.1 but after 3.0 my scrolling feature is not working
The code for the same is :
NSMutableString *imageHTML = [[[NSMutableString alloc] init] autorelease];
[imageHTML appendString
"<html><head></head><body><span style=\"height:45px;font-size:20px;\"><b>"];
[imageHTML appendString:imageTitle];
[imageHTML appendString
"</span></b><br /><br /><span style=\"height:12px;font-size:10px;\"><b>Tap Image to enlarge </span></b><br /><br /<div style=\"float:left;width:110px;\"><a align=\"center\" href=\""];
[imageHTML appendString:urlOfImageToBeDrawn];
[imageHTML appendString
"\"><img src=\'"];
[imageHTML appendString:thumburlOfImageToBeDrawn];
[imageHTML appendString
"\' width ="];
[imageHTML appendString
"\"100\""];
[imageHTML appendString
"height="];
[imageHTML appendString
"\"100\""];
[imageHTML appendString
"></img></a></div>"];
[imageHTML appendString:imageDescription];
[imageHTML appendString
"</body></html>"];
[myWebViewNews loadHTMLString:imageHTML baseURL:nil];
[self.view addSubview: myWebViewNews];
Please help me to solve this problem, my description text is showing on the screen but if that string is too long then scrolling is not working in 3.0
Thanks,
Deepak
I am using loadHTMLString to load some images and text data on the UIView, if the text string is very long then that should be scroll on the view. This works fine with 2.2.1 but after 3.0 my scrolling feature is not working
The code for the same is :
NSMutableString *imageHTML = [[[NSMutableString alloc] init] autorelease];
[imageHTML appendString
[imageHTML appendString:imageTitle];
[imageHTML appendString
[imageHTML appendString:urlOfImageToBeDrawn];
[imageHTML appendString
[imageHTML appendString:thumburlOfImageToBeDrawn];
[imageHTML appendString
[imageHTML appendString
[imageHTML appendString
[imageHTML appendString
[imageHTML appendString
[imageHTML appendString:imageDescription];
[imageHTML appendString
[myWebViewNews loadHTMLString:imageHTML baseURL:nil];
[self.view addSubview: myWebViewNews];
Please help me to solve this problem, my description text is showing on the screen but if that string is too long then scrolling is not working in 3.0
Thanks,
Deepak