#import <UIKit/UIKit.h>
@interface Twoviews : UIView
typedef void(^IWSettingItemOption)();
- (void) showData:(NSIndexPath *)indexPath;;
//- (void)showData:(NSIndexPath *)indexPath;
@property (nonatomic, copy) IWSettingItemOption option;
@end
self.option = ^(int i,int a){
// NSLog(@"%d %d",i,a);
};
@interface oneViews ()<UITableViewDelegate,UITableViewDataSource>
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
Twoviews *two=[[Twoviews alloc] init];
two.option(5,6);
[self addSubview:two];
[two showData:indexPath];
}