Skip to content

Optional methods not being called #11

Description

@timhibbard

All the methods in the @optional tag are not being called:

- (void)tableView:(UITableView *)tableView updatedHeight:(CGFloat)height atIndexPath:(NSIndexPath *)indexPath;
- (BOOL)tableView:(UITableView *)tableView textView:(UITextView*)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
- (void)tableView:(UITableView *)tableView textViewDidChangeSelection:(UITextView*)textView;
- (void)tableView:(UITableView *)tableView textViewDidEndEditing:(UITextView*)textView;

My interface looks like this:

#import "ACEExpandableTextCell.h"

@interface PaymentDetail : UITableViewController<ACEExpandableTableViewDelegate>

The code that isn't called looks like:

- (void)tableView:(UITableView *)tableView textViewDidEndEditing:(UITextView*)textView{
    NSLog(@"tag=%ld",(long)textView.tag);
}

- (BOOL)tableView:(UITableView *)tableView textView:(UITextView*)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{

    NSLog(@"%@",text);
    return YES;
}

The method that is marked as required works great

- (void)tableView:(UITableView *)tableView updatedText:(NSString *)text atIndexPath:(NSIndexPath *)indexPath
{
    stop.copayPaymentType = text;
}

Am I missing something?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions