- (void)doSomething:(NSString *)aString { NSLog(@"%@ iPad", aString); } @end @implementation RootViewController_iPhone - (void)doSomething:(NSString *)aString { NSLog(@"%@ iPhone", aString); } @end RootViewController *vc = [[RootViewController_iPad alloc] init]; [vc doSomething:@"cool"]; // prints "cool iPad"