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 7158165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:01:00+00:00 2026-05-28T13:01:00+00:00

i created an iPad application, in which i am fetching data from URL, when

  • 0

i created an iPad application, in which i am fetching data from URL,
when i write this code it shows me this warning initWithContentsOfURL is deprecated

here is the code snippet,

NSString *mainstr;

NSURL *urlr=[NSURL URLWithString:@"http://abc.com/default.aspx?id=G"];
NSURLRequest *reqr=[NSURLRequest requestWithURL:urlr];
[webViewq loadRequest:reqr];

mainstr=[[NSMutableString alloc]initWithContentsOfURL:urlr]; 

also in tableView it shows me this warning,initWithFrame:reuseIdentifier: is deprecated

here is the code snippet, in which i am creating one label inside each row

static NSString *CellIdentifier=@"Cell"; 

if(cell == nil){


            cell=[[[UITableViewCell alloc]initWithFrame:CGRectZero reuseIdentifier:CellIdentifier]autorelease];

            CGRect frame;
            frame.origin.x = 0; 
            frame.origin.y = 0;
            frame.size.height = 40;
            frame.size.width = 180;


            UILabel *capitalLabelI = [[UILabel alloc] initWithFrame:frame];
            capitalLabelI.tag = CapitalTag;
            capitalLabelI.font=[UIFont systemFontOfSize:16.0];

}
capitalLabelI.text=[@" " stringByAppendingString:[a objectAtIndex:indexPath.row]];

return cell;

and when i call multiple parametrized method, it shows me this warning,

method name:

-(void)recentquote:(NSString *)sym:(int)i

call syntex:

[self recentquote:l3:i];

warning:

Instance method '-recentquote::' not found (return type default to 'id')'

Help me guys !!

Thanks In Advance !!

  • 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-28T13:01:01+00:00Added an answer on May 28, 2026 at 1:01 pm

    the call syntax should be

    [self recentquote:l3 :i];
    

    (note at the space in between), I suggest renaming your function anyway.

    when it say it’s deprecated, it simply means some time in the future, Apple might remove this method all together, it’s not longer supported. So change your

    cell = [[[UITableViewCell alloc]initWithFrame:CGRectZero reuseIdentifier:CellIdentifier]autorelease];
    

    to

    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
                                                reuseIdentifier:CellIdentifier] autorelease];
    

    Check the documentation for available style and what it means

    EDIT :

    I suggest changing it, maybe to

    - (void)recentQuote:(NSString *)quote withIndex:(int)index; 
    

    then to call it use

    [self recentQuote:@"OK" withIndex:2];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i created an iPad application, in which i used searchBar, in searchBar data is
I created an iPad application in which I would like to have my searchBar
I have created an iPad application which contains images. I am storing these images
I've created an iPad app which contains a slideshow and when this slideshow is
i created an iPad application, in which navigation is not working, for example on
I have created iPad application which downloads images using web service. But my application
I created an application a while back which uses Core Data in order to
Created .NET WCF service, tested it - works. Generated schemas from Data and service
I made iPad application in which, I want to insert record into database table,
We are new to iOS development and this is our first application for iPad

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.