开发者

The eXe-SCORM generated html file has to be transparent to show the backround UIIMage view

开发者 https://www.devze.com 2023-01-04 04:40 出处:网络
Hii....i am new to iPhone programming..Can anybody help me out please i have an html开发者_StackOverflow社区 which is generated by eXe tool.I need to show it on an UIImageView,created programmaticall

Hii....i am new to iPhone programming..Can anybody help me out please

i have an html开发者_StackOverflow社区 which is generated by eXe tool.I need to show it on an UIImageView,created programmatically. so the html has to be transparent then the image looks like backround.

is it possible to make that html as transparent..?

Thank u


NSString *path = [[NSBundle mainBundle]  pathForResource:@"filename"  ofType:@"html"];

    NSFileHandle *readHandle = [NSFileHandle   fileHandleForReadingAtPath:path];



    NSString *htmlString = [[NSString alloc] initWithData:

                            [readHandle readDataToEndOfFile]   encoding:NSUTF8StringEncoding];



    webView.opaque = NO;

    webView.backgroundColor = [UIColor clearColor];

    [self.webView loadHTMLString:htmlString baseURL:nil];

    [htmlString release];


This code helped me

Thank u all...
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号