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

  • Home
  • SEARCH
  • 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 580737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:30:16+00:00 2026-05-13T14:30:16+00:00

I have seen some similar questions on stackoverflow and on searched on google too

  • 0

I have seen some similar questions on stackoverflow and on searched on google too but could not get a satisfying answer.

I am doing an application in which data is shown into a table. Now on selecting a row I need to now that if this will lead to a page where I am expected to see feeds. I am trying to detect the url via this method, but not sure that this will give me the best results and may be I would be missing some more cases, so I need the help in two ways:

  • Is there a better way to do this?
  • Or are these cases complete (means, do I need to test more cases)?

    -(BOOL)checkForTheFeed:(NSString *)address{    
        if([address hasSuffix:@"/feed/"])
            return YES;
        if([address hasPrefix:@"feed://"])
            return YES;
        if([address rangeOfString:@"=rss"].location != NSNotFound)
            return YES;
        if([address rangeOfString:@".rss"].location != NSNotFound)
            return YES;
        if([address hasSuffix:@"/rss/"])
            return YES;
        if([address rangeOfString:@"/feeds."].location != NSNotFound)
            return YES;
        if([address rangeOfString:@".feeds."].location != NSNotFound)
            return YES;
        if([address hasSuffix:@".xml"])
            return YES;
        return NO;
    }
    

If I miss some cases please try to add them.

Thanks,

Madhup

  • 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-13T14:30:16+00:00Added an answer on May 13, 2026 at 2:30 pm

    You should really look at the content-type and content of the remote resource. Looking at a URL to figure out what kind of data it points to is the wrong approach.

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

Sidebar

Related Questions

I have seen some similar questions here, but the answers dont solve my problem.
I have seen some similar questions here on stack-overflow, but in my application i
Okay I have seen some very similar questions here but none seem to be
There are many questions about this PersistenceException, but I have not seen some, where
Have seen some similar questions: What is the difference between a JavaBean and a
I've seen some similar questions on stack but I don't think this is a
I've seen some similar questions, but nothing quite like what I'm trying to figure
I've seen some similar questions, but nothing that quite pointed me in the direction
I've seen some similar questions, but none that look like what I'm trying to
I have seen similar questions (ex here and here ) but never seen 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.