我這裏有一個代碼的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