Reputation: 1189
I'm developing an iOS 6 app for iPad. I have a Subclass and I'd like to call a ViewController's object from it. How can I do it?
Upvotes: 0
Views: 41
Reputation: 17673
i think you want to access the properties of your ViewController into your subclass. then treat that properties is like your subclass properties.
subclass means you have derived base viewController into your subviewController i.e. now you have all properties & methods of baseViewController into your subViewController.
example- it is like you are inheriting TableViewController into ViewController
@interface ViewController: UITableViewController
now here you can easily use tableView of TableViewController as like it is the property of your ViewController & you can access it like
self.tableView
Upvotes: 1