Note that there are some explanatory texts on larger screens.

plurals
  1. POLimit to adding objects to a performSelector request (iOS4)
    primarykey
    data
    text
    <p>If I use this code, the app works:</p> <pre><code>if ([self.navigationController respondsToSelector:@selector(showUpdateRecordModalWithFrontWord:andBackWord:)]) { NSLog(@"seems to respond"); [self.navigationController performSelector:@selector(showUpdateRecordModalWithFrontWord:andBackWord:) withObject:[currentCard frontWord] withObject:[currentCard backWord]]; } </code></pre> <p>If I add a third parameter (below), I get a SIGABRT.</p> <pre><code>if ([self.navigationController respondsToSelector:@selector(showUpdateRecordModalWithFrontWord:andBackWord:andNotes:)]) { NSLog(@"seems to respond"); [self.navigationController performSelector:@selector(showUpdateRecordModalWithFrontWord:andBackWord:andNotes:) withObject:[currentCard frontWord] withObject:[currentCard backWord] withObject:[currentCard notes]]; } </code></pre> <p>The method is here:</p> <pre><code>- (id)showUpdateRecordModalWithFrontWord:(NSString *)arg_name1 andBackWord:(NSString *)arg_name2 andNotes:(NSString *)arg_name3 { NSLog(@"%s", __FUNCTION__); AppProductModalController *modal = [[AppProductModalController alloc] initWithNibName:nil bundle:nil]; [modal setNewRecord: NO]; [modal setDelegate: self.topViewController]; [modal.navBar.topItem setTitle: @"Update Card"]; [modal.frontWordField setText: arg_name1]; [modal.backWordField setText: arg_name2]; [modal.notesField setText: arg_name3]; [self presentModalViewController:modal animated:YES]; [modal release]; return nil; } </code></pre> <p>Am I running into a limit of parameters, or am I just doing something wrong?</p> <p>I appreciate any help..</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload