IOS storyboard UITableViewCell 单击传值
来源:互联网 发布:维宏股份人工智能 编辑:程序博客网 时间:2024/06/06 01:34
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ UITableViewCell *cell = (UITableViewCell*)sender; NSIndexPath *indexPath = [self.tableView indexPathForCell:cell]; Favorite *favorite = [self.favoriteItems objectAtIndex:indexPath.row]; stopString = favorite.title; routeString = favorite.subtitle; UIViewController *destination = segue.destinationViewController; if ([destination respondsToSelector:@selector(setDelegate:)]) { [destination setValue:self forKey:@"delegate"]; } if ([destination respondsToSelector:@selector(setSelection:)]) { NSString *route = routeString; NSDictionary *selection1 = [NSDictionary dictionaryWithObjectsAndKeys:route, @"route", stopString, @"stop", nil]; [destination setValue:selection1 forKey:@"selection"]; }}
- IOS storyboard UITableViewCell 单击传值
- iOS: Autolayout和Storyboard中动态UITableViewCell的高度
- iOS 解决单击手势与UItableviewCell表格手势冲突
- IOS StoryBoard视图切换传值
- IOS--storyboard页面切换与传值
- storyboard 拖 UITableviewCell的问题
- UITableViewCell Storyboard加载错误解决
- iOS 解决在Storyboard中修改UITableViewCell背景色无效果的问题
- iOS- UITableViewCell
- ios uitableviewcell
- IOS开发(54)之Storyboard之传值
- IOS开发(54)之Storyboard之传值
- iOS: Storyboard
- iOS storyboard
- iOS StoryBoard
- Creating custom UITableViewCell's within a Storyboard
- UITableViewCell的循环利用 - 在storyboard里
- ios值UITableViewCell侧滑删除
- 使用iOS系统中的编辑联系人界面
- iOS7新特征汇总[03]新特征介绍3
- CodeForces 258B Little Elephant and Elections 数位DP
- const总结
- ViewPager里面ImageView图片切换出现bug
- IOS storyboard UITableViewCell 单击传值
- Android TouchEvent的传递
- ThreadLocal模式
- VI和VIM
- 研究生开学典礼有感
- iOS7新特征汇总[04]新特征介绍4
- 网站排名掉至百名以外的几个原因
- 连通分量合集
- 浙江大学PAT上机题解析之1003. 我要通过!(20)