Recalculate Copy menu rect when photo is there.

This commit is contained in:
Kyle Fang
2013-07-25 23:28:04 +08:00
parent c9477d38b4
commit d058884b37

View File

@@ -196,7 +196,8 @@
return;
UIMenuController *menu = [UIMenuController sharedMenuController];
[menu setTargetRect:CGRectInset([self.bubbleView bubbleFrame], 0, 4.f) inView:self];
CGRect targetRect = [self convertRect:[self.bubbleView bubbleFrame] fromView:self.bubbleView];
[menu setTargetRect:CGRectInset(targetRect, 0, 4.f) inView:self];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(menuWillShow:)