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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:53:31+00:00 2026-06-12T21:53:31+00:00

I am working on in-app purchase task in app I done all work currently

  • 0

I am working on in-app purchase task in app I done all work currently but I need one help that my product array display in UITableview with sorting in alphabetical but I need display as same a my productIdentifiers how can I do this stuff please help

My issue example below:-

I set my product productIdentifiers like

- (id)init 
{
   NSSet *productIdentifiers = [NSSet setWithObjects:
                                   @"com.myapp.calculation.c",
                                   @"com.myapp.calculation.d",
                                   @"com.myapp.calculation.a",
                                   @"com.myapp.calculation.s",
                                   @"com.myapp.calculation.b",
                                   @"com.myapp.calculation.h",
                                   nil];

    if ((self = [super initWithProductIdentifiers:productIdentifiers])) 
    {                

    }

    return self;
}   

and in tableview data display on cell alphabetical sorting with
a
b
c
d
h
s

but i need it display as same as productIdentifiers like c d a s b h

Please help.

  • 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-12T21:53:32+00:00Added an answer on June 12, 2026 at 9:53 pm

    Expanding on Adam’s comment above, if you are trying to display data from a collection class in a table view, you should use an array as the data source, not a set. This is because the objects contained within an NSArray are automatically ordered, based on how the objects are placed into the array, and so will come out in that order. With an NSSet the contents are unordered and thus will come out in any order.

    Take a look at Apple’s Values and Collections document, which gives details of the three main types of collection class available in Cocoa: NSArray, NSSet and NSDictionary.

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

Sidebar

Related Questions

My in-app purchase was working fine till Wednesday. But yesterday onwards when am clicking
I am currently implementing in-app purchases in an app that I am working for
I have implemented In App Purchase in one of the existing application, it's working
Currently I'm working on in-App Purchase functionality, and I am getting below of the
I have my (sandbox) In App Purchase working, but how do I determine if
I'm working with In App Purchase. I'm trying to get all my transactions from
I am new to In-App purchase feature in iOS. I am working on an
i am working inapp-purchase project and first time for creating inapp-purchase in new app
I've been working with app engine for quite some time, I know that there
I had a working Active Admin app working on my local server, but after

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.