My app is crashing while loading mail body, it shows me BAD_ACCESS on [self sendActionsForControlEvents:TITokenFieldControlEventFrameDidChange]; this line, tried to search solution on google but didn't found any solution.
(void)layoutTokensAnimated:(BOOL)animated {
CGFloat newHeight = [self layoutTokensInternal];
if (self.bounds.size.height != newHeight){
// Animating this seems to invoke the triple-tap-delete-key-loop-problem-thing™
[UIView animateWithDuration:(animated ? 0.3 : 0) animations:^{
[self setFrame:((CGRect){self.frame.origin, {self.bounds.size.width, newHeight}})];
[self sendActionsForControlEvents:TITokenFieldControlEventFrameWillChange];
My app is crashing while loading mail body, it shows me BAD_ACCESS on [self sendActionsForControlEvents:TITokenFieldControlEventFrameDidChange]; this line, tried to search solution on google but didn't found any solution.
(void)layoutTokensAnimated:(BOOL)animated {
CGFloat newHeight = [self layoutTokensInternal]; if (self.bounds.size.height != newHeight){
// Animating this seems to invoke the triple-tap-delete-key-loop-problem-thing™ [UIView animateWithDuration:(animated ? 0.3 : 0) animations:^{ [self setFrame:((CGRect){self.frame.origin, {self.bounds.size.width, newHeight}})]; [self sendActionsForControlEvents:TITokenFieldControlEventFrameWillChange];
} completion:^(BOOL complete){ if (complete) { [self sendActionsForControlEvents:TITokenFieldControlEventFrameDidChange]; } }]; } }