当前位置: 首页 > 工具软件 > CMPopTipView > 使用案例 >

IOS常用第三方框架 --- CMPopTipView 提示信息

田兴旺
2023-12-01

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;
}
 类似资料: