腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(6505)
视频
沙龙
0
回答
UICollectionView
prepareForSegue
indexPathForCell
is
nil
iOS
9
、
、
、
问题是这一行返回
nil
: }} func collectionV
浏览 3
提问于2016-07-08
得票数 0
回答已采纳
1
回答
CollectionViewController单元格选择-空数组
、
、
在我的CustomCollectionViewController类中,我有一个检测单元格选择的方法: [messageAlert show];效果很好。- (void)
prepareForSegue
:(UIStoryboardSegue *)segue sender:(id)sender {
浏览 0
提问于2015-02-11
得票数 0
4
回答
voice over只能看到
uicollectionview
的一页
、
、
、
、
所以我有一个带有一组UICollectionViewCells的
UICollectionView
,它使用一个自定义的UILayout显示。我已经对UILayout进行了配置,使其所有UICollectionViewCells的布局与
ios
上照片应用的布局几乎完全相同。
浏览 0
提问于2012-11-19
得票数 15
1
回答
为什么不能用列表类型‘(
IndexPathForCell
)’的参数来调用‘
UICollectionView
’?
、
、
、
我用这个
UICollectionView
创建了一个。然后我想把indexPath从这个
UICollectionView
传递给我的GameViewController,就像在这个中一样。func collectionView(collectionView:
UICollectionView
, cellForItemAtIndexPath indexPath: NSIndexPath)levelLabel} override func
prepareForSegue
(segue: UISto
浏览 2
提问于2015-09-06
得票数 0
1
回答
prepareForSegue
UICollectionView
不工作(迅速)
、
、
、
、
我试图通过使用
UICollectionView
(将图像形式MasterView显示为DeatilView)来推动segue,但没有起作用。Xcode也不显示任何错误消息。我的密码怎么了。override func
prepareForSegue
(segue: UIStoryboardSegue, sender: AnyObject?)
indexPathForCell
(sender as!
浏览 3
提问于2015-06-13
得票数 2
回答已采纳
2
回答
使用
prepareForSegue
collectionView
、
selectedItemIndex: NSIndexPath) {}override func
prepareForSegue
(segue: UIStoryboardSegue, sender: AnyObject?)
indexPathForCell
(sender as!=
nil
) { destination.
浏览 3
提问于2016-04-05
得票数 1
回答已采纳
1
回答
swift中的条件分段是如何实现的
、
、
、
可能的选项包括: println(data) if let resultsloaded){} override func
prepareForSegue
(segue: UIStoryboardSegue,
浏览 1
提问于2015-07-27
得票数 0
1
回答
用destinationViewController向
prepareForSegue
发送单元数据
、
、
、
不幸的是,当使用
prepareForSegue
向destinationViewController发送单元数据时,我不能使用标准的let indexPaths = self.collectionView.indexPathForSelectedRow那么,如何使用destinationViewController使用
prepareForSegue
将单元数据发送到gestureRecognizer呢?
浏览 0
提问于2015-08-15
得票数 0
回答已采纳
3
回答
如何用
prepareForSegue
制作
UIcollectionView
、
我对这个代码有问题: self.performSegueWithIdentifier("showDetailsSegue", sender: self) override func
prepareForSegue
func collectionView(collectionView:
UICollectionVie
浏览 0
提问于2015-08-10
得票数 5
回答已采纳
1
回答
如何在Swift中将NSIndexPath转换为Int?
、
、
我需要我的
UICollectionView
的细胞索引。我知道如何获得它,但问题是当我将这个NSIndexpath转换为Int时。这是我的密码。override func
prepareForSegue
(segue: UIStoryboardSegue, sender: AnyObject?)
indexPathForCell
(cell)! let vc : VideosViewController = segue.destinationViewController as!
浏览 2
提问于2015-07-23
得票数 5
回答已采纳
4
回答
如何在
prepareForSegue
中获取索引路径
、
- (void)
prepareForSegue
:(UIStoryboardSegue *)segue sender:(id)sender if ([segue.identifier
浏览 8
提问于2014-10-09
得票数 41
回答已采纳
1
回答
在集合视图单元格的superview上使用带有按钮的按钮,其中包含故事板和抛出错误
、
、
、
func collectionView(collectionView:
UICollectionView
, didSelectItemAtIndexPath indexPath: NSIndexPath{ } override func
prepareForSegue
=
nil
, "sender is not a collection view")
浏览 0
提问于2015-11-23
得票数 0
回答已采纳
1
回答
self.tableView indexPathForSelectedRow不使用附件,为什么..?
、
基本上,当我单击单元格上的附件按钮时,如果我尝试通过执行indexPath来访问indexPathForSelectedRow,那么它就不能正常地返回
nil
。因此,我研究并发现,我需要使用
indexPathForCell
:
prepareForseGue
中的发件人方法。so..why..?我发现我需要在
prepareForsegue
:发件人:使用附件中使用这段代码但是,我还没找到原因 self.tableView
浏览 3
提问于2014-04-24
得票数 0
回答已采纳
3
回答
从Swift中的
UICollectionView
中提取
、
、
、
pastTripDetailViewController }根据@Laffen的请求,
UICollectionView
出现在代码中的以下位置: class pastTripD
浏览 2
提问于2015-07-24
得票数 4
回答已采纳
1
回答
如何识别哪个按钮单击了哪个节
UICollectionView
iOS
?
、
、
我有一个
UICollectionView
,它有两个部分。每个区段标题都有一个按钮。我试图向
prepareForSegue
上的另一个视图控制器发送id,如下所示。segue identifier] isEqualToString:@"ManualCapture"]){ NSIndexPath *indexPath = [self.collectionView
indexPathForCell
基本上,我想做的是,当我点击第1节中的按钮时,在
prepareForSegue
上应该发送0,如果我在第2节中
浏览 2
提问于2015-02-10
得票数 1
回答已采纳
1
回答
在DetailViewController中将数据从TableView传递到
iOS
5的问题
、
、
、
、
细节 我已经创建了一个单例来存储视图控制器之间的NSString。+ (id)singletonManager;Singleton.m self.tableData = [NSArray arrayWithObjects:@"First", @&q
浏览 2
提问于2012-05-10
得票数 4
回答已采纳
13
回答
如何从UICollectionViewCell访问
UICollectionView
中的单元的indexPath
、
、
、
、
我在Interface Builder做过Interface Builder,
UICollectionView
也做过。collectionView:svc.collectionViewProdukte didSelectItemAtIndexPath:indexPath];SortimentViewController是继承
UICollectionView
浏览 10
提问于2012-12-14
得票数 21
回答已采纳
2
回答
从CollectionView到ViewController的项目信息
、
、
、
viewDidAppear:(BOOL)animated [self fetchJson];- (CGFloat)collectionView:(
UICollectionView
*)collectionView return 1;-(NSInteger)collectionView:(
UICollectionView
forHost:[url host]]; NSError *error = [[
浏览 2
提问于2015-05-01
得票数 0
回答已采纳
1
回答
(Swift)在indexPathFOrSelectedRow上使用NSFetchedResultsController编辑保存数据
、
、
现在,我在TableViewController中编写的代码如下所示: fetchedResultsController?.storyboard-based application, you will often want to do a little preparation before navigat
浏览 2
提问于2015-01-16
得票数 0
回答已采纳
3
回答
UIVisualEffectView in
iOS
10
、
、
、
、
我将介绍一个包含UIViewController的UIVisualEffectView,如下所示: [self performSegueWithIdentifier:@"segueBlur" sender:
nil
]; -(void)
prepareForSegue
:(UIStoryboardSeg
浏览 2
提问于2016-09-24
得票数 31
回答已采纳
点击加载更多
相关
资讯
如何给TableView、CollectionView添加动效
GitHub开源项目更新精选
原生APP开发流程
iOS APP 架构漫谈
iOS:基于KVO的轻量级iOS双向数据绑定响应式编程框架
热门
标签
更多标签
云服务器
ICP备案
云直播
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券