我有mainView中的按钮,当我点击主视图按钮(id 1)其操作调用nextView [secondview有tableView] tableView单元格第一行选中或突出显示state.its状态设置为选中。点击UIButton并调用它的动作下一个查看表单元格行选择状态?
-(IBAction)btnOneClicked:(id)sender
{
SecondView *nextView = [[SecondView alloc] initWithNibName:@"SecondView" bundle:nil];
[self.navigationController pushViewController:SecondView animated:YES];
NSIndexPath* selectedCellIndexPath= [NSIndexPath indexPathForRow:0 inSection:0];
[nextView tableView:nextView.firstTable didSelectRowAtIndexPath:selectedCellIndexPath];
}
你可以看看我的按钮动作方法。我尝试了很多选择,但没有成功。请帮助。
现在它的工作很好,谢谢... – Ravindhiran