Initiating swift UIViewController from objective C file

I'm learning Swift and trying different basic things. I have an Objective C UIViewController and trying to initialize Swift class that has no Storyboard or Nib file.

I have successfully initiated UIViewController from Swift ViewController and can see my content

But when I initiate Swift UIViewController from Objective C, it navigates me but I can't see my content even if I change the background color of view, still see white.

In my Objective C file I'm presenting modally,

ABCViewController *vc = [ABCViewController new]; [self presentModally:vc withLeftCancelButton:NO]; 

ABCViewController is Swift class that doesn't have init method, just viewDidLoad. I wonder what mistake I'm making.


Category: ios Time: 2016-07-29 Views: 5

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.120 (s). 12 q(s)