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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:53:21+00:00 2026-06-05T09:53:21+00:00

in my app, the users can create groups. When a user creates a group,

  • 0

in my app, the users can create groups. When a user creates a group, a new folder is uploaded on dropbox, and inside there is a JSON file like this:

{"group":"0864798478"}

The code you see is generated randomly in the following way:

NSString *randomKey = [NSString stringWithFormat:@"%0.10u", arc4random()];

Then I have a table view which displays all the folders (groups). But I would like the UITableView to display only the groups which mach with the codes the iPad has saved on.

So if I have:

{"group a":"0864797073"}
{"group b":"0764898478"}
{"group c":"2864758479"}

And on the iPad there is a file containing the code:

0864797073 (group a)

The table View displays only that group, not all.

How can I do this??

Thanks in advance for the 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-05T09:53:23+00:00Added an answer on June 5, 2026 at 9:53 am

    You can use JSONKit or SBJson for parse JSON files and obtain NSDictionaries with the data. Then you can create a NSDictionary in wich you could save the result of comparing previous dictionaries, an then show the result in the table with method tableView:cellForRowAtIndexPath. OR, make the comparison in the method tableView:cellForRowAtIndexPath. Good Luck!

    EDIT:

    If the file reads:

    {"group a":"0864797073"} 
    

    You parse it and get a dictionary like in wich “group a” will be the KEY and the NSString “0864797073” will be the value. So to compare the dictionary wich holds group a with wich holds group b you have to do:

    if([[firstParsedJson objectForKey:@"group a"] isEqualToString:[secondParsedJson objectForKey:@"group b"]])
    {
       //Do some stuff...
    }
    

    Where firstParsedJson and secondParsedJason are NSDictionaries that represent parsed json with, for example, SBJson.

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

Sidebar

Related Questions

I am writing an web app, in which a user can create group and
In my app, users can drag and drop different image files to create a
In my app the user can create many UIImageViews programmly, and tags are assigned
I'm writing an app where a user can both create their own pages for
In Google App Engine, you can create User objects with any email adress. These
So I have a simple web app where I can create a user (UserModel)
I have a web app that lets users create groups. On the front page
I have an app where users can sign up with Facebook, in which case
I have a rails app that users can upload photos to. The photos get
I'm writing an Android app where users can upload video to Youtube. I'd like

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.