简单易用的上拉加载、下拉刷新组件,可自定义头部和底部视图,可单独实现下拉刷新,上拉加载更多。 用法:(具体请查看DEMO) /** SEE SYRefreshTable (https://github.com/reesun1130/SYRefreshTable) for instructions. * USE SYRefreshTable LIKE: * @interface ViewController : SYTableViewController * OVERRIDE refresh、loadMore、scrollViewDidScroll */ ////////// 只需实现这三个方法 即可实现下拉刷新,上拉加载更多
/**SYQRCode:IOS原生API,需要IOS7.0及以上系统支持。 用法: //扫描二维码 SYQRCodeViewController *aaa = [[SYQRCodeViewController alloc] init]; aaa.SYQRCodeSuncessBlock = ^(NSString *qrString){ self.saomiaoLabel.text = qrString; }; aaa.SYQRCodeCancleBlock = ^(SYQRCodeViewController *are){ self.saomiaoLabel.text = @"扫描取消~"; [are dismissViewControllerAnimated:YES completion:nil]; }; [self presentViewController:aaa animated:YES completion:nil]; **/
/** SYActionSheetView实现了类似于UIActionSheet的效果,简单易用,完美支持IOS5.0及以上版本。 用法: SYActionSheetView *actv = [[SYActionSheetView alloc] initWithTitle:nil cancelButtonTitle:@"cancle" otherButtonTitles:@"action1",@"action2",nil]; actv.syActionSheetActionBlock = ^(UIButton *actionBtn){ if (actionBtn.tag == kBtnCaccleTag + 1) { SYLog(@"%@",actionBtn.titleLabel.text); } else if (actionBtn.tag == kBtnCaccleTag + 2) { SYLog(@"%@",actionBtn.titleLabel.text); } }; [actv showSYActionSheet]; */