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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:56:56+00:00 2026-05-27T20:56:56+00:00

I have defined a property in application delegate.h and synthesized it in delegate.m file

  • 0

I have defined a property in application delegate.h and synthesized it in delegate.m file to make it global and to assign and to get its value from entire application:

@property (strong, nonatomic) NSArray *accountsList;

In mainviewcontroller I am assigning NSArray *accounts value to this global value like this:

((VektorAppDelegate *)[UIApplication sharedApplication].delegate).accountsList = accounts;

And in pickerviewcontroller I am assigning its value to another array like:

 accountsArray = ((VektorAppDelegate *)[UIApplication sharedApplication].delegate).accountsList;

And then assign it to a picker view as:

- (NSInteger)pickerView:(UIPickerView *)thePickerView numberOfRowsInComponent:(NSInteger)component {
    return [accounts count]; //Thread 1: Program received signal: "SIGABRT"
}

Now here at this point I point I get an error and my application is crashing, sometimes it works and sometimes it gives error. I am not getting what would be the issue.

  • 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-27T20:56:57+00:00Added an answer on May 27, 2026 at 8:56 pm

    I’ve got an idea… Make a method to check if both array’s are equal. So something like

    if ([(Appdelegate*).....delegate.array isEqualToArray:Accountslist]) {NSLog:(@"equal")}
    

    If it NSLog’s correctly, you’re screwed… But if it doesn’t, then it just means you aren’t correctly initializing your array.

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

Sidebar

Related Questions

Imagine I have a property defined in global.asax. public List<string> Roles { get {
In my application context I have defined properties file: <context:property-placeholder location=classpath:application.properties /> I want
I have an NSMutableArray defined as a property, synthesized and I have assigned a
I have defined a personalizable property on a web part and I would like
I have a a property defined as: [XmlArray(delete, IsNullable = true)] [XmlArrayItem(contact, typeof(ContactEvent)), XmlArrayItem(sms,
I have defined a new dialog and its controls in an already existing resource
I have defined the global nls_date_format on Oracle 10.2 XE as follows: alter system
I have a WPF application which has a main window composed from several custom
I am creating a simple aspnetmvc cart application and have defined classes similar to
I have an application where a property placeholder is used to read properties, configured

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.