一款显示操作提示的控制器
应用介绍
该源码是一款显示操作提示的控制器,源码ATTutorialController,ATTutorialController是一款显示操作提示的控制器。通过Block进行回调。 使用方法: 导入头文件: #import 调用sharedInstance和showTutorialWithFramesAndStringsBlock:completion:方法: [[ATTutorialController sharedInstance] showTutorialWithFramesAndStringsBlock:^NSArray *{ UIView *leftButton =((UIView *)sortedButtons[0]); UIView *rightButton =((UIView *)sortedButtons[1]); CGRect frame1 = [self.navBar convertRect:leftButton.frame toView:nil]; CGRect frame3 = [self.navBar convertRect:rightButton.frame toView:nil]; return @[ @{@"frame": [NSValue valueWithCGRect:frame1], @"string": @"A beautiful item 1" }, @{@"frame": [NSValue valueWithCGRect:frame3], @"string": @"A beautiful item 2" } ]; } completion:^{ // Some completion code [self.tableView setContentOffset:(CGPoint) { self.tableView.contentOffset.x, self.tableView.contentSize.height-self.tableView.frame.size.height } animated:YES]; } waitsForTouch:YES];

©软件著作权归作者所有。本站所有内容均来源于网络,不得违法使用,仅供学习使用,请支持正版!
转载请注明出处: 662P » 一款显示操作提示的控制器
发表评论 取消回复