代码拉取完成,页面将自动刷新
//
// MLTableAlert.h
//
// Version 1.0
//
// Created by Matteo Del Vecchio on 11/12/12.
// Copyright (c) 2012 Matthew Labs. All rights reserved.
// For the complete copyright notice, read Source Code License.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
@class MLTableAlert;
// Blocks definition for table view management
typedef NSInteger (^MLTableAlertNumberOfRowsBlock)(NSInteger section);
typedef UITableViewCell* (^MLTableAlertTableCellsBlock)(MLTableAlert *alert, NSIndexPath *indexPath);
typedef void (^MLTableAlertRowSelectionBlock)(NSIndexPath *selectedIndex);
typedef void (^MLTableAlertCompletionBlock)(void);
@interface MLTableAlert : UIView <UITableViewDataSource, UITableViewDelegate>
{
@private
NSInteger m_row;
}
@property (nonatomic, strong) UITableView *table;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) BOOL cellSelected;
@property (nonatomic, strong) MLTableAlertCompletionBlock completionBlock; // Called when Cancel button pressed
@property (nonatomic, strong) MLTableAlertRowSelectionBlock selectionBlock; // Called when a row in table view is pressed
// Classe method; rowsBlock and cellsBlock MUST NOT be nil
+(MLTableAlert *)tableAlertWithTitle:(NSString *)title row:(NSInteger)row cancelButtonTitle:(NSString *)cancelBtnTitle numberOfRows:(MLTableAlertNumberOfRowsBlock)rowsBlock andCells:(MLTableAlertTableCellsBlock)cellsBlock;
// Initialization method; rowsBlock and cellsBlock MUST NOT be nil
-(id)initWithTitle:(NSString *)title row:(NSInteger)row cancelButtonTitle:(NSString *)cancelBtnTitle numberOfRows:(MLTableAlertNumberOfRowsBlock)rowsBlock andCells:(MLTableAlertTableCellsBlock)cellsBlock ;
// Allows you to perform custom actions when a row is selected or the cancel button is pressed
-(void)configureSelectionBlock:(MLTableAlertRowSelectionBlock)selBlock andCompletionBlock:(MLTableAlertCompletionBlock)comBlock;
// Show the alert
-(void)show;
-(void)dismissTableAlert;
@end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。