开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜