Vik2r
Vik2r

Reputation: 155

UIViewController owner (getting instance that holds another instance)

i have a code here

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

so basically RightSidebarController instance holds an instance of activitiesController

the question is:

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

it was basically like getting the view controller of a UIView like in this link here.

just in this case, it is viewController to ViewController.

if it's not clear enough please ask me.. Thanks ahead..

Upvotes: 0

Views: 127

Answers (2)

Kumar KL
Kumar KL

Reputation: 15335

There is a Project Over here with detailed explaination of the Sliding ViewControllers for all the possible ways .

Upvotes: 0

iEinstein
iEinstein

Reputation: 2100

you can use this link if you want to access 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

Please let me know if it solves your problem.

hope this helps.

Upvotes: 1

Related Questions