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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:29:49+00:00 2026-06-03T00:29:49+00:00

I have two separate dictionaries. First one has letter’s equivalent icon names, and the

  • 0

I have two separate dictionaries. First one has letter’s equivalent icon names, and the second one has the number of frames for icon. The definition is as follows:

NSDictionary *alphabet = [[NSDictionary alloc] initWithObjectsAndKeys: @"A", @"A", @"B", @"B", @"C", @"C", @"Ç", @"CC", @"D", @"D", @"E", @"E", @"F", @"F", @"G", @"G", @"Ğ", @"GG", @"H", @"H", @"I", @"I", @"İ", @"II", @"J", @"J", @"K", @"K", @"L", @"L", @"M", @"M", @"N", @"N", @"O", @"O", @"Ö", @"OO", @"P", @"P", @"R", @"R", @"S", @"S", @"Ş", @"SS", @"Q", @"Q", @"T", @"T", @"U", @"U", @"Ü", @"UU", @"V", @"V", @"W", @"W", @"X", @"X", @"Y", @"Y", @"Z", @"Z", @" ", @"EMPTY", nil];
NSDictionary *icons = [[NSDictionary alloc] initWithObjectsAndKeys: @"A", @"4", @"B", @"3", @"C", @"1", @"CC", @"5", @"D", @"4", @"E", @"4", @"F", @"4", @"G", @"4", @"GG", @"7", @"H", @"4", @"I", @"1", @"II", @"6", @"J", @"6", @"K", @"4", @"L", @"1", @"M", @"4", @"N", @"4", @"O", @"1", @"OO", @"6", @"P", @"4", @"Q", @"1", @"R", @"4", @"S", @"4", @"SS", @"6", @"T", @"4", @"U", @"1", @"UU", @"6", @"V", @"1", @"W", @"1", @"X", @"1", @"Y", @"4", @"Z", @"4", @"EMPTY", @"0", nil];

I get a word, then for each letter try to get icon name from alphabet and number of frames from icons. However, icons always return nil. I tried NSNumber for icons, but it doesn’t work.

for (int i = 0; i < textLength; i++) {
        NSString * iconLetter = [icons objectForKey: [heardText substringWithRange:NSMakeRange(i, 1)]];
        int iconFrame = [[alphabet objectForKey: iconLetter] intValue];
}
  • 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-03T00:29:51+00:00Added an answer on June 3, 2026 at 12:29 am

    Your value and key pairs for icon are in wrong position. It should be “value, forKey” pattern, or “1”, “A”, ….

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

Sidebar

Related Questions

Currently, I have two separate tabs: variables and frames, and can only have one
I have two separate .NET applications, one server and another WinForms. WinForms app has
I have two separate git repositories. One is mine, and has Branch A, the
I have two separate caches running in a JVM (one controlled by a third
We have two databases, in two separate locations. One of the databases resides in
I have two separate websites on the same server. One site is a forum
I have two separate tables used for categories. One is Categories(ID, Title, Description) ,
I have two separate installs of WebSphere. (Actually one is WebSphere Application Server V6.1
I want to have two separate interfaces to my website, one that is silverlight,
I have two vectors defining two separate points in a three-dimensional space. One is

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.