gpt4 book ai didi

ios - UIViewController 所有者(获取持有另一个实例的实例)

转载 作者:行者123 更新时间:2023-11-29 03:24:42 28 4
gpt4 key购买 nike

我这里有密码

@interface FFRightSidebarController ()
@property (nonatomic, strong) FFActivitiesController *activitiesController;
@property (nonatomic, strong) FFSidebarTableController *dummy2;
@end

所以基本上 RightSidebarController 实例包含一个 activitiesController 实例

问题是:

can i get the instance of rightsidebarcontroller from activitiescontroller (getting the instance of an instance):

这基本上就像在这个链接中获取 UIView 的 View Controller here .

只是在这种情况下,它是 viewController 到 ViewController。

如果不够清楚请问我..先谢谢了..

最佳答案

你可以使用这个link如果你想访问parentViewController

To access the parent View controller u can use self.parentViewController. Once you have it you can access its view simply by using its view property

如果它解决了您的问题,请告诉我。

希望这有帮助。

关于ios - UIViewController 所有者(获取持有另一个实例的实例),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20605001/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com