objective c - UIWebView Crashing App -


This is my code that all crashes my app together

Specify its value to the webview Doing bit: It works fine till the last line when it's SIGBARTS

  [cell setlabel text: [cellulit objectAutandex: indexpath.ro]]; [Cell Imsettler: [Image ObjectiveWindex: IndexPath.ro]]; [Cell disseet: [desTitle object atxx: indexpath.ro]]; [Cell Transformation Productive Web: [WebTitleObjectAindex: IndexPath.ro]];   

array

  webTitle = [[NSARLAOC] initWithObjects: @ "http://www.google.com/", @ "http: // Www.google.com/ ", @" http://www.google.com/ ", @" http://www.google.com/ ", zero];   

action

  - (IBAction) changeProductWeb: (NSString *) str {NSURL * url = [NSURL URLWithString: str]; NSMutableURLRequest * requestObj = [NSMutableURL request request withURL: url]; [WebView loadRequest: requestObj]; }   

This crashes a single bit program. When you remove it, then this accident is used.

You'll get a SIGABR at some point as [webView retain] as if your webview is organized by your class Is not being done.

A simple solution is to use it in your .h file:

  @ property (non-constructive, retaining) UIWebView * webView;   

Then go to your .m file:

  @Synthesis webview;   

Then, wherever you see your webview, be sure to add "self"

  [self.webView loadRequest: requestObj];    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -