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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:56:13+00:00 2026-06-07T10:56:13+00:00

In a UITableView’s index scroller (the scroller on the right side containing the chars

  • 0

In a UITableView’s index scroller (the scroller on the right side containing the chars for each section) how do I display a mix of English characters and say Japanese characters? Is there a way to grab the first char of an NSString and then check to see if it’s actually part of a é or something (since é is 2 unicode characters — e + `). Any code snippets would be very helpful. By just doing the first character, it ends up displays random characters like “=” or “~” instead of the japanese character

Thanks!

NOTE: I’m not using the UILocalizedIndexedCollation because I am using CoreData’s FetchResultsController. In many places online I’ve read that you can’t really use both.

EDIT: I can get the character now, however the tableview index doesn’t seem to render them properly. Does anyone have something like Japanese characters displaying in the tableview index?

  • 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-07T10:56:15+00:00Added an answer on June 7, 2026 at 10:56 am

    The most solid way is to use the NSString methods that are sensitive to these characters. You would probably be interested in the WWDC2011 – Session 128 – Advanced Text Processing video. It talks extensively about just this subject. Pay attention to the part about “Composed Character Sequences”

    Based on the information presented there you could probably do something like this:

    #warning I haven't tested this thoroughly
    NSString *string = @"Hello";
    __block NSString *firstCharacterSequence = nil;
    [string enumerateSubstringsInRange:NSMakeRange(0, string.length) 
                               options:NSStringEnumerationByComposedCharacterSequences 
                            usingBlock:^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop){
                                firstCharacterSequence = substring;
                                *stop = YES;
                            }];
    NSLog(@"%@",firstCharacterSequence);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm implementing a UITableView that has the index along the right hand size as
I'm using a UITableView filled with a around 200 cells containing a title, subtitle
I have a UITableView on a UIViewController. And this table has say 5 visible
In UITableView we have headers For example Say I want to group businesses by
I want to implement UITableView Where I want to have 3 buttons in each
- (NSInteger) tableView: (UITableView *) tableView numberOfRowsInSection: (NSInteger) section I'm pretty comfortable with obj-c,
i want to parse a xhtml file and display in UITableView. what is the
UITableView has custom header UIView , which contains UILabel. Since table has also section
Our UITableView returns the number of rows for a given section. What we're experiencing
I have a UITableView which I use to display images in a grid form.

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.