腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
可选绑定如果它不应该成功的话
ios
、
generics
、
swift
是一个MasterViewController (UITableViewController
的
子类),它
的
父视图控制器是一个
UINavigationController
。父视图控制器层次结构
中
没有
UICollectionViewController
,因此我希望该方法返回nil,并且输出“未找到”。但事情就是这样: comparing <
UINavigationController
: 0x7fbc00c4de10> to
UICollectionViewControll
浏览 2
提问于2014-09-14
得票数 10
回答已采纳
3
回答
不能在Swift 3
中
调用非函数类型UICollectionView
的
值
ios
、
swift3
、
uicollectionview
预期结果失败与 private func createNavController(imageName: String, _ controllerName:
UICollectionViewController
) ->
UINavigationController
{
浏览 6
提问于2017-03-16
得票数 1
回答已采纳
1
回答
UICollectionViewController
中
的
UINavigationController
swift
、
uicollectionview
、
uinavigationcontroller
、
swift5
有没有一种方法可以将
UINavigationController
放在
UICollectionViewController
中
?例如,就像他们在Instagram上做
的
那样。当您转到您
的
个人资料时,您可以看到您
的
帖子,您还可以看到您被标记
的
帖子。在这种情况下,配置文件是
UICollectionViewController
,在帖子和标记帖子之间
的
切换是
UINavigationController
。还是我错了?我怎么才能得到
浏览 12
提问于2021-07-04
得票数 0
1
回答
将集合视图控制器加载到视图控制器
中
。
ios
、
swift
这能以编程
的
方式完成吗?我有3个选项卡在我
的
选项卡视图控制器,并需要这样做,只有其中一个,而不是全部。到目前为止,我所做
的
是:添加了一个新
的
快速文件。home.swift在其中添加了以下内容:{} 然后,我将视图控制器
的
类更改为EventsController,但它引发了以下异常:异常'NSInternalInc
浏览 1
提问于2016-07-24
得票数 0
2
回答
UICollectionView/AppDelegate在遵循视频教程时导致崩溃
swift
、
crash
、
appdelegate
在回到Swift很长一段时间后,我真的需要一个数字键盘来做我现在正在做
的
事情。我目前正在关注这个视频 (从5:19开始),然而在7:18,当他再次构建应用程序时,它工作了,我
的
应用程序仍然崩溃,并出现相同
的
错误。我已经检查了AppDelegate
中
的
代码至少5次,所有代码都与他
的
代码完全相同,直到最后一个字符。我已经在下面附上了我
的
代码。我不知道自从视频发布后,var window:UIWindow?我
的
校对代码:
浏览 0
提问于2020-02-26
得票数 0
2
回答
iOS pushNotice重定向板
ios
、
push-notification
我想重定向到特定
的
视图时,触摸推通知警报外
的
应用程序。我写过这样
的
代码..。我是否需要写下我
的
应用程序
的
整个Controller结构,还是有其他方法可以这样做?我
的
应用程序
的
结构是一个带有四个标签
的
UITabBarViewController .
浏览 4
提问于2015-01-19
得票数 0
回答已采纳
1
回答
将iOS UIViewController从NSObject类推出
ios
、
uiviewcontroller
、
uinavigationcontroller
、
nsobject
我
的
AppDelegate中有以下代码。它是在检查In App购买到期时使用
的
,如果订阅到期,用户将弹出一个弹出以供用户选择续订,如果这样做,它将把In购买
的
视图控制器推到堆栈上。我想将代码从AppDelegate
中
移出,转到它自己
的
NSObject类
中
(只是为了保持整洁)。但是,如何将视图控制器从另一个类
中
调用?self.window.rootViewController不存在于NSObject类
中
,因此当然不起作用。
UINavigation
浏览 2
提问于2014-06-22
得票数 0
回答已采纳
1
回答
UIViewController从
UICollectionViewController
到UIViewController导航时
的
闪烁
ios
、
objective-c
、
iphone
、
xcode
我正在使用
UICollectionViewController
从UIViewController导航到
UINavigationController
。当我
的
UIViewController加载时,它会闪烁半个屏幕。
浏览 1
提问于2015-02-10
得票数 1
回答已采纳
1
回答
带有搜索栏
的
导航栏不会显示大标题
ios
、
uinavigationcontroller
、
uicollectionview
、
uisearchbar
、
uisplitviewcontroller
我有一个带有
UINavigationController
的
UISplitViewController作为主视图控制器。此
UINavigationController
有一个
UICollectionViewController
作为其rootViewController。在
UICollectionViewController
中
,我设置了以下参数:self.collectionView.bouncesinitWi
浏览 7
提问于2017-07-23
得票数 0
1
回答
与ViewController.useLayoutToLayoutNavigationTransitions结合使用TLLayoutTransitioning
ios
、
objective-c
、
uicollectionview
、
uicollectionviewlayout
APLTransitionManagerDelegate- (id <UIViewControllerAnimatedTransitioning> ) navigationController:(
UINavigationController
from or to a collection view controller, and that interaction is allowed
浏览 2
提问于2014-04-07
得票数 0
4
回答
无法从UIViewController导航到
UICollectionViewController
ios
、
objective-c
、
iphone
、
xcode
、
uiviewcontroller
我正在和
UICollectionViewController
一起工作。当我使用
UINavigationController
从UIViewController导航到
UICollectionViewController
时,出现异常,消息如下: Terminating app我使用
的
是一个没有任何编码
的
简单
UICollectionViewController
(即默认情况下创建
的
文件)。我
的
Xcode版本是6.1.1。pushViewController:C
浏览 0
提问于2015-02-09
得票数 2
1
回答
在制表栏控制器中将视图推送到导航控制器上,不会显示动画。
ios
、
swift
、
animation
、
uinavigationcontroller
、
uitabbarcontroller
我有一个很奇怪
的
问题。我
的
设置是一个带有两个UITabBarController子
UINavigationController
->
UICollectionViewController
的
UINavigationController
->
UICollectionViewController
。如果我在navigationController.pushViewController(someVC, animated: true)
中
说viewDid
浏览 0
提问于2018-04-13
得票数 1
回答已采纳
5
回答
导航栏在情节提要
的
UItableviewcontroller
中
不显示
ios
、
xcode
、
uinavigationcontroller
、
storyboard
、
uitableview
我创建了一个
UICollectionviewcontroller
视图并嵌入了一个
UINavigationcontroller
,然后我在导航bar.Again
中
创建了一个按钮我创建了一个UITableviewcontroller还嵌入了一个
uinavigationcontroller
,当我单击UICollectionview导航栏
中
的
按钮时,它会显示到目前为止
的
UITableviewcontroller,但之后UITableview控制器
中
的</
浏览 0
提问于2013-03-27
得票数 1
1
回答
创建新
的
视图控制器
ios
、
swift
、
xcode
、
user-interface
、
uiviewcontroller
我正在尝试以编程方式创建一个新
的
视图控制器,而不是使用Xcode上
的
故事板。我对编码非常陌生,不知道在frame所在
的
括号
中
必须放入什么值。代码都在应用代理上,你能帮我吗?rootViewController =
UINavigationController
(rootViewController: Homecontroller(frame: -, collectionViewLayout
浏览 0
提问于2018-06-29
得票数 0
1
回答
将视图控制器推到NavigationController上后,中心没有显示导航标题
swift
、
uinavigationcontroller
我有一个具有根控制器
的
UINavigationController
,它是一个名为HomeController
的
UICollectionViewController
,我在AppDelegate
中
设置了这个rootViewController =
UINavigationController
(rootViewController: HomeController(collectionViewLayout:layout)) } ..
浏览 1
提问于2017-06-16
得票数 0
回答已采纳
2
回答
带有返回按钮
的
swift present控制器可返回到最后一个屏幕
swift
、
xcode
我正在展示一个
UICollectionViewController
,但它最终只是一个没有返回按钮
的
控制器,无法返回到最后一个控制器或家庭控制器,我如何添加一个后退按钮?或者我还有什么其他
的
选择?class UserProfileController:
UICollectionViewController
, UICollectionViewDelegateFlowLayout, UserProfileHeaderDelegatePE = FriendsRequestsController(collectionViewLayo
浏览 1
提问于2018-04-02
得票数 3
1
回答
SwiftUI
中
UICollectionViewController
的
替代方案是什么?
ios
、
xcode
、
swiftui
最近,我开始玩SwiftUI,我正在寻找SwiftUI
的
UIkit
的
每个组件
的
替代。UIViewController -> View
UINavigationController
-> NavigationViewUIAlertController -> Alert 但我找不到
UICollectionViewController
的
替代
浏览 0
提问于2019-07-07
得票数 0
1
回答
如何在Objective C
中
以编程方式设置集合视图?
ios
、
objective-c
、
swift
、
uicollectionviewlayout
rootViewController =
UINavigationController
(rootViewController : HomeController(collectionViewLayout:layout)) 我试图在Objective C
中
获得上面的swift代码。到目前为止,我所做
的
是在错误
的
结果下面列出
的
。为了实现上述目标,我必须在objc代码
中
做哪些更改。ViewController *controller = [[ViewController alloc] init]
浏览 8
提问于2017-08-29
得票数 0
回答已采纳
1
回答
带有布局委托
的
转换UICollectionView布局
ios
、
layout
、
delegates
、
uicollectionview
但是,在转换完成之前,collectionView
的
委托不会更改为新
的
视图控制器,这意味着我不能覆盖用于itemSize、间距等
的
流布局挂钩。我认为这也是流行动画中
的
一个问题。是否有推荐
的
方法来做到这一点,或者我不应该依赖于委托挂钩?当执行不需要委托挂钩
的
布局到布局推送时,一切都很好。
浏览 2
提问于2014-01-16
得票数 0
回答已采纳
1
回答
在执行布局到布局导航转换时使用自定义转换布局。
ios
、
cocoa-touch
、
uicollectionview
、
transition
、
uicollectionviewlayout
我将
UICollectionViewController
的
useLayoutToLayoutNavigationTransitions属性设置为“是”,以便为-[
UINavigationController
当我这样做
的
时候,我期待着两种行为。2)当我推送/弹出
UICollectionViewController
实例时,例如通过调用[
UINavigatio
浏览 0
提问于2013-11-10
得票数 9
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Python中的类型提示(中)
变革中的张健,变革中的FCoin
想象中 VS 现实中的AI
你想象中的黑客VS现实中的黑客
iOS导航栏的正确隐藏方式
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券