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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:28:22+00:00 2026-05-22T15:28:22+00:00

I am trying to run the following code: – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

  • 0

I am trying to run the following code:

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    static NSString *CellIdentifier = @"CellIdentifier";
    GradeToolAppDelegate * appDelegate = [UIApplication sharedApplication].delegate;
    appDelegate = [UIApplication sharedApplication].delegate;
    // Dequeue or create a cell of the appropriate type.
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
        cell.accessoryType = UITableViewCellAccessoryNone;
    }
    NSLog(@"Array Count: %d", [appDelegate.modules count]);
    // Configure the cell.
    //cell.textLabel.text = [NSString stringWithFormat:@"Row %d", indexPath.row];
    //Module * aModule = [appDelegate.modules objectAtIndex:indexPath.row];
    //cell.textLabel.text = aModule.moduleTitle;
    return cell;
}

But it just crashes the app with:

2011-05-20 15:38:09.256 GradeTool[3994:207] -[GradeToolAppDelegate modules]: unrecognized selector sent to instance 0x5523f80
2011-05-20 15:38:09.258 GradeTool[3994:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GradeToolAppDelegate modules]: unrecognized selector sent to instance 0x5523f80'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x00eebbe9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x00ce05c2 objc_exception_throw + 47
    2   CoreFoundation                      0x00eed6fb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x00e5d366 ___forwarding___ + 966
    4   CoreFoundation                      0x00e5cf22 _CF_forwarding_prep_0 + 50
    5   GradeTool                           0x000037ff -[RootViewController tableView:cellForRowAtIndexPath:] + 322
    6   UIKit                               0x003367fa -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 634
    7   UIKit                               0x0032c77f -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 75
    8   UIKit                               0x00341450 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1561
    9   UIKit                               0x00339538 -[UITableView layoutSubviews] + 242
    10  QuartzCore                          0x01ff8451 -[CALayer layoutSublayers] + 181
    11  QuartzCore                          0x01ff817c CALayerLayoutIfNeeded + 220
    12  QuartzCore                          0x01ff137c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
    13  QuartzCore                          0x01ff10d0 _ZN2CA11Transaction6commitEv + 292
    14  UIKit                               0x002c519f -[UIApplication _reportAppLaunchFinished] + 39
    15  UIKit                               0x002c5659 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 690
    16  UIKit                               0x002cfdb2 -[UIApplication handleEvent:withNewEvent:] + 1533
    17  UIKit                               0x002c8202 -[UIApplication sendEvent:] + 71
    18  UIKit                               0x002cd732 _UIApplicationHandleEvent + 7576
    19  GraphicsServices                    0x01a70a36 PurpleEventCallback + 1550
    20  CoreFoundation                      0x00ecd064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
    21  CoreFoundation                      0x00e2d6f7 __CFRunLoopDoSource1 + 215
    22  CoreFoundation                      0x00e2a983 __CFRunLoopRun + 979
    23  CoreFoundation                      0x00e2a240 CFRunLoopRunSpecific + 208
    24  CoreFoundation                      0x00e2a161 CFRunLoopRunInMode + 97
    25  UIKit                               0x002c4fa8 -[UIApplication _run] + 636
    26  UIKit                               0x002d142e UIApplicationMain + 1160
    27  GradeTool                           0x00002960 main + 102
    28  GradeTool                           0x000028f1 start + 53
)
terminate called after throwing an instance of 'NSException'

The GradeToolAppDelegate * appDelegate = [UIApplication sharedApplication].delegate; seems to be one of the major problems, and when running NSLog(@"Array Count: %d", [appDelegate.modules count]); causes the exception

Can anyone help me out here on what I am doing wrong.

Thanks.

  • 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-22T15:28:23+00:00Added an answer on May 22, 2026 at 3:28 pm

    Your GradeToolAppDelegate does not have a modules method defined. Seeing that you are referencing via dot-notation, I’d assume you forgot to either: define the property and/or synthesize the property.

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

Sidebar

Related Questions

I am trying to run the following code from within Eclipse: Process process =
I'm trying to run the following code(in gcc 4.3 on fedora 11 i586 ):
I am trying to run the following code within SQLPlus: exec lbacsys.sa_sysdba.create_policy(policy_name => 'ACCESS_LOCATIONS',
I'm trying to run the following code in eclipse but the console remains blank
I am trying to run the following code: 1. NSURL *checkLicenseURL = [NSURL URLWithString:@check_license.php?accesskey=&license_key=];
I am trying to run the following code (which I got from here ).
When I'm trying to run the following code in IE:- <html> <head> <script language=javascript>
I am trying to run the following ruby code from IRB but am unable
I'm trying to run the following code with Ninject.Moq: [TestMethod] public void TestMethod1() {
I'm trying to run the following code but unfortunately facing Error problems package jskypeexample;

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.