ACEExpandableTextCell
ACEExpandableTextCell copied to clipboard
Optional methods not being called
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?
Did you try to run the demo app? is the method "updatedHeight" called ?
These optional method don't exist with the latest pod version. Are they removed or just not in sync with latest version ?
These method were introduced after the latest push on CocoaPods. I just updated it, please check it out