0
UIWebView *fullWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0,45,320,435)];
fullWebView.backgroundColor = [UIColor lightGrayColor];
fullWebView.delegate =self;
[fullWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString: http://maps.google.com/maps?f=dsaddr=37.331689,-122.030731daddr=37.324188,-122.036144]];
[self addSubview:fullWebView];
[fullWebView release], fullWebView = nil;
这是我的代码,一旦我加载此代码,我将在我的web视图中获取谷歌方向页面; 但是一旦我点击走路方向,我的应用就会崩溃。我在谷歌方向有错误
和我有这个错误。
(
3816,0xb0081000) malloc: *** error for object 0x18c5000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
(gdb) continue
[Switching to process 3816]
Program received signal: “EXC_BAD_ACCESS”.
[Switching to process 3816]
我在设置断点malloc_error_break,但我无法跟踪有关应用程序崩溃什么。
基本上我需要驾驶方向,行走方向和巴士方向为可能的应用程序,所以我试过这个链接在我的网站视图。
任何一个可以帮助我在网上以清除这个错误或获得谷歌地图的方向