GitHub:https://github.com/chrismiles/CMPopTipView
CMPopTipView用于在一些视图上显示提示信息:
self.tipView = [[CMPopTipView alloc] initWithMessage:@"提示消息"];
self.tipView.delegate = self;
[self.tipView presentPointingAtView:anyButton inView:self.view animated:YES];// 点击按钮显示
[self.tipView presentPointingAtBarButtonItem:barButtonItem animated:YES]; // 点击导航栏按钮显示
#pragma mark CMPopTipViewDelegate methods
- (void)popTipViewWasDismissedByUser:(CMPopTipView *)popTipView
{
// 清理资源
self.tipView = nil;
}