#pragma mark - UITableView点击跳转到DeviceStatusDetail页面
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
DeviceStatusDetailViewController *detailView = [[DeviceStatusDetailViewController alloc] init];
[self.navigationController pushViewController:detailView animated:NO];
}
其中DeviceStatusDetailViewController是要跳转到的界面对应的class。
http://blog.youkuaiyun.com/jamiecheung
http://blog.youkuaiyun.com/u010841622
本文介绍了一个简单的UITableView点击事件处理方法,通过该方法可以实现在点击UITableView的某一行时跳转到另一个页面(DeviceStatusDetail)。此示例适用于iOS应用开发中UITableView的基本交互设计。
3267

被折叠的 条评论
为什么被折叠?



