故事板从表格单元中延伸出来并显示其详细信息披露按钮(storyboard segue from a tablecell an its Detail Disclosure Button)
如果在单元格中单击或单击“细节披露按钮”单元格,我想从表格单元中继续浏览两个不同的视图控制器。
如果我按住ctrl-拖动第二个赛格,第一个被删除。 我究竟做错了什么?
Tnx云母
I want to segue from a tablecell to two different viewcontrollers if clicked in the cell or clicked on the cells Detail Disclosure Button.
If I ctrl-drag the second segue, the first is deleted. What am I doing wrong?
Tnx Mica
满意答案
我不认为你可以链接一个特定的细节披露按钮瓦特/赛格。 我的故事板是非常程序化的B / C我使用了很多定制CGRect等。
所以我倾向于使用这样的东西:
-(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { [self performSegueWithIdentifier:@"ViewControllerIdentifer" sender:self]; }
作为参考,这是一个非常好的故事板和桌面视图示例项目。 还有一个链接到底部的项目。
http://www.raywenderlich.com/5191/beginning-storyboards-in-ios-5-part-2
I don't think you can link a specific detail disclosure button w/ a segue. My storyboards are extremely programatic b/c I use alot of custom CGRect etc..
so I tend to use something like this:
-(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { [self performSegueWithIdentifier:@"ViewControllerIdentifer" sender:self]; }
for reference this is an extremely good example project on storyboards and tableviews. there's a link to the project at the bottom also.
http://www.raywenderlich.com/5191/beginning-storyboards-in-ios-5-part-2
相关问答
更多故事板从表格单元中延伸出来并显示其详细信息披露按钮(storyboard segue from a tablecell an its Detail Disclosure Button)
IOS StoryBoard来自TableCell的多个Segue(IOS StoryBoard multiple Segue's from a TableCell)
如何根据按下的按钮取消隐藏标记的详细信息公开按钮(How to Unhide tagged detail disclosure button depending on which button was pressed)
必须按两次详细公开按钮才能使用prepareForSegue方法传递数据(Have to press detail disclosure button twice for data to be passed using prepareForSegue method)
配置UITableView自定义详细信息披露按钮的操作(Configuring action for UITableView custom detail disclosure button)
触摸详细信息披露指示时,Mapview注释崩溃(Mapview annotation crashing when detail disclosure indicator touched)
MapKit注释如何添加详细信息披露信息按钮?(MapKit annotation how to add detail disclosure info button?)
如何在此自定义披露按钮中执行s segue?(How to perform s segue in this custom disclosure button?)
从详细信息披露按钮传递对象segue(Passing an object from a detail disclosure button segue)
相关文章
更多按钮样式
微信公众号接口添加菜单时错误(errcode":40017 invalid button type)
Becoming a data scientist
[转]So You Want To Be A Producer
ServletOutputStream cannot be resolved to a type
A Great List of Windows Tools
Drupal Forums instead of phpBB or vBulletin: A casestudy
每日英语:Man Without a Country
HTML 超链接(a标签、锚)
Supra Skytop Shoes All White Gunny are a top performance
最新问答
更多绝地求生、荒野行动、香肠派对 哪个更好玩???(都是吃鸡类游戏)
如何在jQuery集合中选择第n个jQuery对象?(How to select the nth jQuery object in a jQuery collection?)
ASP NET使用jQuery和AJAX上传图像(ASP NET upload image with jQuery and AJAX)
SQL Server XML查询中包含名称空间的位置(SQL Server XML query with namespaces in the where exist)
宁夏银川永宁县望远镇哪里有修mp5的?
我想用更新的日期标记所有更新的行(I would like to mark all updated rows with the date that they have been updated)
郑州会计培训班
如何定位数组中的负数,并得到所有正数的总和?(How to target e negative number from an array, and get the sum of all positive numbers?)
在响应图像上叠加网格(Overlay grid on responsive image)
无法让POST在Azure网站上运行(Could not get POST to work on Azure Website)
Copyright ©2023 656463.com All Rights Reserved.滇ICP备2022006988号-50
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们,本站将尽快处理。谢谢合作!