I created a button inside of UITableViewCell
, and when I click a button ,I want go to author view control with index value.
tapped = [UIButton buttonWithType:UIButtonTypeCustom];
[tapped setFrame:CGRectMake(0, 0, 320, 100)];
[tapped setTitle:@"button" forState:UIControlStateNormal];
NSInteger tet;
tet = indexPath.row;
[tapped addTarget:self action:@selector(tapped:) forControlEvents: UIControlEventTouchDown];
[Cell addSubview:tapped];