我这里有一个代码的UIViewController所有者(让持有另一个实例实例)
@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):
它基本上就像在这个链接here中获得UIView的视图控制器一样。
就在这种情况下,它是ViewController的viewController。
,如果它不够清晰,请叫我..谢谢..提前
我试过这一个先生..但它是返回零。也许activitiesController不是Rightsidebarcontroller的childController,因为它没有设置为其子视图控制器..感谢您的建议先生.. – Vik2r
好的没问题。首先检查你的代码,如果它仍然没有解决,你可以再来 – iEinstein
我会接受这个答案,因为这给了我一个我必须做的事情就是添加activitiesController到RightSidebarController的childController方法addChildViewController :.谢谢.. – Vik2r