Objective-C does not support method overloading, so methods "navigateToWebViewController" and ""navigateToPosts" have to use a different method name. When you inherited UIViewController you inherited NSObject and made the class interopable to Obj-C. Swift on the other hand supports overloading, that's why it works when you remove the inheritance.
Objective-C does not support method overloading, so methods "navigateToWebViewController" and ""navigateToPosts" have to use a different method name. When you inherited UIViewController you inherited NSObject and made the class interopable to Obj-C. Swift on the other hand supports overloading, that's why it works when you remove the inheritance.

bennyguitar/News-YC---iPhone,iOSTestApps/News-YC---iPhone,Ferrari-lee/News-YC---iPhone,iOSTestApps/News-YC---iPhone,epiphany27/News-YC---iPhone,kArTeL/News-YC---iPhone,epiphany27/News-YC---iPhone,kArTeL/News-YC---iPhone,bennyguitar/News-YC---iPhone,Ferrari-lee/News-YC---iPhone