嗨....我是 iPhone 编程的新手..有人可以帮帮我吗
我有一个由 eXe 工具生成的 html。我需要在 UIImageView 上显示它,以编程方式创建。所以 html 必须是透明的,然后图像看起来像背景。
是否可以使该 html 透明..?
感谢你
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...