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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:49:07+00:00 2026-05-25T16:49:07+00:00

I have a NSMutableArray * nameCatalog which contains pair of names and urls(name, url)

  • 0

I have a NSMutableArray * nameCatalog which contains pair of names and urls(name, url).

If I display nameCatalog in viewDidLoad like this:

for (Catalogue *o in nameCatalog){
        NSLog(@"Catalog: %@", o.url);
    }

I get the following links, which is good:

Next I wanna put the NSMutableArray * nameCatalog as content to a table.And I implement the following:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

    NSURL *url=[NSURL URLWithString:[[nameCatalog objectAtIndex:indexPath.row] valueForKey:@"url"]];
     NSLog(@"the clicked url:%@", url);

}

So when I click the first row of the table it will be displayed the first url….the second and so on.

When I click first row it gets displayed this

which is correct.

When I click second row it displays this:

which is also correct.

When I click the third row it displays this:

 (null)

which is WRONG!

Where I’m going wrong?

Has anything to do with the fact that the third link contains the french e?

in the word coupé.

IMPORTANT:

Above for simplisity and for make it clear for everyone I assumed that my NSMutableArray
contains only 3 urls.

In fact it contains much more, about 20 urls.And everything is going great except the urls that contain french e.When I click those rows of the table NSLog displays null.

And I’m sure that my NSMutableArray contains those links.Please tell me how to fix this?

  • 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-25T16:49:08+00:00Added an answer on May 25, 2026 at 4:49 pm

    Your 3rd string contains ‘é’ character that may be invalid in url – try to add percent escapes for that character using -stringByAddingPercentEscapesUsingEncoding: function in NSString:

    NSString *escapedString = [[[nameCatalog objectAtIndex:indexPath.row] valueForKey:@"url"] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *url=[NSURL URLWithString:escapedString];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have An NSMutableArray of NSMutableDictionary Which Looks like this Object 1 of Array
Essentially I have an NSMutableArray which contains several NSDictionaries . I wish to sort
I have this NSMutableArray which is a collection of objects that are being moved
I have NSMutableArray which contains NSObjects. Each NSObject contains a NSString as property which
I have an NSMutableArray called myObjectArray which contains and array of NSObjects called myObject.
I have an NSMutableArray full of NSDictionary objects. Like so NSMutableArray *names = [[NSMutableArray
I have an NSMutableArray something like this array =[[a1,b1,c1],[a2,b2,c2],[a3,b3,c3].......] and I access this array
I have an NSMutableArray of NSArray's inside it. This is my current structure: Paused
I have a NSMutableArray filled with NSMutableArray's. I would like to fill my table
I have NSMutableArray day which contain (6 NSMutable arrays) arrays contain class Lesson{ NSString

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.