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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:11:13+00:00 2026-06-04T04:11:13+00:00

Got an a question for you all here, what I trying to a do

  • 0

Got an a question for you all here, what I trying to a do is I want to add "?tmpl=component&print=0&layout=default&page=" and to the end of a articleURL, I’ve looked on google and came across something about NSMutableString but my articleURL is using a NSString.

How do I go about add this text on to my articleURL in real-time or should I do it before the webView loads the page.

The webView is in a different view too.

Below is where I think my app is getting the URL for a RSS XML but I just can’t figure out how to amend it to include the above for all the articles.

code

- (void)parseAtom:(GDataXMLElement *)rootElement entries:(NSMutableArray *)entries {

NSString *blogTitle = [rootElement valueForChild:@"title"];                    

NSArray *items = [rootElement elementsForName:@"entry"];
for (GDataXMLElement *item in items) {

    NSString *articleTitle = [item valueForChild:@"title"];
    NSString *articleDescription = [item valueForChild:@"description"];
    NSString *articleUrl = nil;
    NSArray *links = [item elementsForName:@"link"];        
    for(GDataXMLElement *link in links) {
        NSString *rel = [[link attributeForName:@"rel"] stringValue];
        NSString *type = [[link attributeForName:@"type"] stringValue]; 
        if ([rel compare:@"alternate"] == NSOrderedSame && 
            [type compare:@"text/html"] == NSOrderedSame) {
            articleUrl = [[link attributeForName:@"href"] stringValue];
        }
    }

    NSString *articleDateString = [item valueForChild:@"updated"];        
    NSDate *articleDate = [NSDate dateFromInternetDateTimeString:articleDateString formatHint:DateFormatHintRFC3339];

    RSSEntry *entry = [[[RSSEntry alloc] initWithBlogTitle:blogTitle 
                                              articleTitle:articleTitle
                                        articleDescription:articleDescription
                                                articleUrl:articleUrl
                                               articleDate:articleDate] autorelease];
    [entries addObject:entry];

}      

}
  • 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-06-04T04:11:14+00:00Added an answer on June 4, 2026 at 4:11 am

    You can also NSMutableString instead of NSString.

    You can use like –

    NSString *extraString = @"?tmpl=component&print=0&layout=default&page=";
    [articleUrl stringByAppendingString:extraString];
    

    Primary difference between using NSMutableString instead of NSString is –

    If you use NSString [NSString stringByAppendingString:], it will generates a new immutable NSString object, so cause memory leak. However, with NSMutableString it will append string in same object.

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

Sidebar

Related Questions

Got a question for you all! I'm trying to make a navigation system for
I'm new to PHP first of all .. My question is once I got
I got a question ;) Actually I want to use core-data in different threads.
first question here, so hopefully you'll all go gently on me! I've been reading
Here's something that's got me a bit stumped but intrigued all the same. In
hey all, i have a question about urlmapping in grails. I'm trying to make
Hey all. Newbie question time. I'm trying to setup JMXQuery to connect to my
I got question about log4net is it working on IIS 7,5? I read lot
I've got question about wpf xaml style definitions. When I try to set style
Got a question regarding best practices for doing parallel web service calls, in a

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.