Skip to content

Commit

Permalink
Merge pull request #9 from thongbin/master
Browse files Browse the repository at this point in the history
bug fixed
  • Loading branch information
tinyq committed Jul 31, 2015
2 parents 9efa487 + c71dc83 commit 370757b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TQRichTextViewDemo/TQRichTextView/TQRichTextView.m
Expand Up @@ -229,7 +229,7 @@ - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
CGPoint location = [(UITouch *)[touches anyObject] locationInView:self];
CGPoint runLocation = CGPointMake(location.x, self.frame.size.height - location.y);

if (self.delegage && [self.delegage respondsToSelector:@selector(richTextView: touchBeginRun:)])
if (self.delegage && [self.delegage respondsToSelector:@selector(richTextView: touchEndRun:)])
{
__weak TQRichTextView *weakSelf = self;

Expand All @@ -252,7 +252,7 @@ - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event
CGPoint location = [(UITouch *)[touches anyObject] locationInView:self];
CGPoint runLocation = CGPointMake(location.x, self.frame.size.height - location.y);

if (self.delegage && [self.delegage respondsToSelector:@selector(richTextView: touchBeginRun:)])
if (self.delegage && [self.delegage respondsToSelector:@selector(richTextView: touchCanceledRun:)])
{
__weak TQRichTextView *weakSelf = self;

Expand Down

0 comments on commit 370757b

Please sign in to comment.