First off I’m quite new to objective-c and xcode in general, so it prop just a lack of fundamental knowledge.
But basically need to extend an UITableViewController onto an UIViewController
or to but in another way i need an interface (header) that inherits the implementation from my UIViewController but is an UITableViewController
To achieve this I would have done something like this in C#:
@interface Keyboard_Field_Extensions_UIViewController : UIViewController
@end
@interface Keyboard_Field_Extensions_UITableViewController : Keyboard_Field_Extensions_UIViewController, UITableViewController
@end
Is there any way around doing this in objective-c? Maybe using delegates? But how?
Objective C doesn’t have multiple inheritance, like C++ or C#
UITableViewController doesn’t need to be extended to UIViewController because it’s ALREADY a UIViewController(extended by some methods for working with tableview)
It’s inheritance chain -UITableViewController: UIViewController : UIResponder : NSObject