Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 965615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:01:40+00:00 2026-05-16T02:01:40+00:00

I am getting this error when I deploy to my iPad. It does not

  • 0

I am getting this error when I deploy to my iPad. It does not occur in the simulator.

My ipad app has three UIWebViews. The majority of this application is written completely as a web app, and uses CSS to make it look more native. Links that are clicked in the various web views will open in a certain one depending on the value of the request variable “iPadTarget.”

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
    NSURL *url = [request URL];

 //Extract the value from request variable 'iPadTarget' in url string.
 NSString *test = [url query];
 int index = [test rangeOfString:@"iPadTarget="].location; 
 int target = index + 11;
 NSLog(@"%i", target);
 char c = [test characterAtIndex:target];
 NSLog(@"%c",c);

 if (navigationType == UIWebViewNavigationTypeLinkClicked) {
  if (c == '1') {
      [viewOne loadRequest:request];
      return NO;
  } else if (c == '2') {
   [viewTwo loadRequest:request];
   return NO;
  } else if (c == '3') {
   [viewThree loadRequest:request];
   return NO;
  }
 } 
  return YES;
  [url release];
    }

The above code locates the variable “iPadTarget” and extracts its value (1 to 3). Why am I get this strange error? Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T02:01:40+00:00Added an answer on May 16, 2026 at 2:01 am

    The line

    [url release];
    

    is the source of your trouble. You are releasing an object you do not own. You acquired the url through the -URL method of the request, and as it does not contain new, create, or copy you are not the owner. Remove the line [url release], and re-read the memory management guidelines.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting this error when I deploy my app on Heroku: Started GET /collections/transect/search?utf8=%E2%9C%93&search%5Btagged_with%5D=village&commit=Search
I'm getting this error: The service class myclass does not comply to one or
I keep getting this error when I deploy my application in the server machine
I'm getting this error when I deploy a VB.NET application and for the life
I am getting this error when I try to deploy my Web API project
Getting this error with jquery & jquery.form. Site has been live for awhile..upgraded to
Getting this error when try to add an item to my repositories/context: Collection has
I'm creating a basic Struts2, Maven webApp and getting this error when I deploy
I need to deploy a report using Reporting services but I'm getting this error,
My App seems to be deploying correctly but I'm getting this error: * executing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.