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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:48:14+00:00 2026-05-16T22:48:14+00:00

Hi I want to put this into a function. NSMutableArray* weekArray = [[NSMutableArray alloc]

  • 0

Hi I want to put this into a function.

NSMutableArray* weekArray = [[NSMutableArray alloc] init];
    [weekArray addObject:@"Before School"];
    [weekArray addObject:[NSString stringWithFormat:@""]];
    [weekArray addObject:[NSString stringWithFormat:@""]];
    [weekArray addObject:@"Break"];
    [weekArray addObject:[NSString stringWithFormat:@""]];
    [weekArray addObject:[NSString stringWithFormat:@""]];
    [weekArray addObject:@"Lunch"];
    [weekArray addObject:[NSString stringWithFormat:@""]];
    [weekArray addObject:[NSString stringWithFormat:@""]];
    [weekArray addObject:@"After School"];
    return weekArray;

I want to be able to call it and when called, replace weekArray with the array I choose. Possible?

  • 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-05-16T22:48:15+00:00Added an answer on May 16, 2026 at 10:48 pm

    Assuming I understand what you’re asking, sure. Here’s an example:

    NSArray *arrayLikeThat() {
        return [NSMutableArray arrayWithObjects: @"Before School",
                                                 [NSString stringWithFormat:@""],
                                                 [NSString stringWithFormat:@""],
                                                 @"Break",
                                                 [NSString stringWithFormat:@""],
                                                 [NSString stringWithFormat:@""],
                                                 @"Lunch",
                                                 [NSString stringWithFormat:@""],
                                                 [NSString stringWithFormat:@""],
                                                 @"After School",
                                                 nil];
    }
    

    You can assign the result to any variable you want.

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

Sidebar

Related Questions

I have a short question. I want do put this \tssr>&\8=f23' into a String
i want to put the id into the colorbox below this code nom works
A team member put this into our project $(function() { $(body).bind(ajaxError, function(event, XMLHttpRequest, ajaxOptions,
I have EuroCPCrap mapped as (j,0)(i,0) and want to put this into an array
I want to break down this URL into variables. http://example.com/user.php?u=38456 I want the value
I have a csv file : 1|1.25 2|23.56 3|58.99 I want to put this
I don't know exactly how to put this question. I want to create a
I have this String String criteria=ESS.(BVA4+BVA5)+(-(DIESE.(BVM5+BVM6))); I want to put validations on it. It
in this tutorial of Yii framework http://www.yiiframework.com/doc/guide/1.1/en/basics.controller#action i want to put my Actions from
This is my 3rd SO question. Please help again... I want to put up

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.