在UIWebView中加载Google Map时出现内存警告

问题描述:

在我的应用程序中,UIWebView在使用此功能时会加载Google地图 方向url ==

In my app UIWebView loads Google maps, while using this Direction url == http://maps.google.com/maps?f=d&hl=en&geocode=&saddr=37.774930,-122.419415&daddr=37.7655277,-122.421811&ie=UTF8&z=12,

它抛出接收到的内存警告",并且我的应用程序崩溃.

it throws "Received memory warning" and my app crash.

UIWebview是我的视图控制器中UIView的子视图.我把它当作IBOutlet.

UIWebview is a subview of UIView in my view controller. I took it as a IBOutlet.

请帮我,这给我的应用带来了很多麻烦.

Pls help me with this, it creates lots of trouble for my app.

预先感谢您...

.h ///---- #import

.h ///---- #import

@interface WebsiteViewController : UIViewController <UIWebViewDelegate>

{

IBOutlet UIWebView *webView;

}

@property(nonatomic,retain) IBOutlet UIWebView *webView;

.m ///----

.m ///---

-(void)viewDidLoad {
     NSURLRequest *request = [[NSURLRequest alloc] initWithURL:@"url"];
[self.webView setScalesPageToFit:YES];
[self.webView loadRequest:request];
[request release]; 
}