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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:02:39+00:00 2026-06-16T17:02:39+00:00

I am fairly new to coding for iOS, so forgive me if my question

  • 0

I am fairly new to coding for iOS, so forgive me if my question seems somewhat of a waste of time. Anyways, I want to upgrade my current app. In this update I want to have a grid layout of logos. These logos are really folders on a website. When clicking the logo it will bring you to another grid layout of images. The images will also be hosted on a website.

If I knew the urls for everything I could figure out how to do this. The problem is that every Sunday another folder is generated and there are about 1000 images posted within that folder. All of the file names are random and so is the folder.

I’m hoping someone can give me some guidance on how to code my app to look for any urls within the folder as I have no idea how I could do this.

Thank you for any and all advice. I really appreciate it!

  • 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-16T17:02:41+00:00Added an answer on June 16, 2026 at 5:02 pm

    This is a good question. You cannot search a folder on a website as you would on a computer. It won’t work. It is up to the server to provide you with a list of the contents of a folder.

    Since the file names are random, you have to rely on the server to provide you with a list of the file names. Do you have access to the server? If so, you can write a simple PHP file that outputs a parsable list of the files.

    Your app can then download this list, sort it, and download the files included in the list.

    If you cannot put this PHP file on the server, then you are out of luck. The file names are random, so you have no way of figuring out what they are.

    PHP

    <?php
    
        $files = scandir("folder");
    
        foreach($files as $file) {
    
            if ($file != "." && $file != "..") {
    
                echo $file . ",";
    
            }
    
        }
    
    ?>
    

    Change "folder" to the name of the folder you would like to scan. If the PHP file is in the folder that you want to scan, change "folder" to ".".

    Access this PHP file in your app the same way you are downloading the images. The output of the PHP file will be the response of the request. Whatever you’re using (AFNetworking, ASIHTTPRequest, NSURLRequest) should allow you to get the response easily as a NSString. Use the following code to break apart the string into a NSArray.

    NSArray *files = [responseString componentsSeparatedByString:@","];
    

    The array, files, contains all of the file names in the directory that the PHP file searched.

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

Sidebar

Related Questions

Im fairly new to coding... i want to be able to change a PHP
Forgive me if this is simple, as I'm fairly new to server/client coding and
I'm fairly new to coding for the iOS platform and objective C in general.
I'm fairly new to coding in general, learning to code in rails, and feel
fairly new iPhone developer here. Building an app to send RS232 commands to a
I am fairly new to java esp. to some of the coding practices. I
So I am still fairly new to all of this, that is coding, OS
I am fairly new to Windows API Programming and I want to know in
I'm fairly new to Android/Java and wanted to make an app that displays info
fairly new to Objective-C and iOS development (coming from PHP) and I have a

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.