ios - After creating a project on Xcode, i deleted the viewController that comes by default and created a new one. But the project does not run -


I have created a project in Xcode and removed the Viewer file that comes by default on it. I've added a new file (Object-C class) and added some controls to its visualdial load and run the project but it does not seem to work, that this view is empty, any settings should be prepared Having been?

When you say that has deleted the view controller file, default in it. , that means that you have chosen other application type other than blank application . This means that you might have chosen the Single Vis App , because the default vequirerother file will be provided to the Single Weave app (the default on the XBOX 5+ by the Storeboard by means of it).

Even if you have deleted the application, you can add

  • Add a NewViewController (subclassed by UIViewController ),
  • Name it ( MyViewController )
  • Save it
  • Import it in app delegate file ( #import " MyViewController.h ")
  • Make an example of this. ( myViewController * vc = [myViewController alloc] )
  • Push on navigation controller

    If you want to add buttons or something , Then

    • just create an object in myViewController
    • & amp;
    • Add them to subdivisions.


      If you are using stories, then

      • Add a new ViewController file & amp; Name it, like myViewController
      • Add a new ViewControlelr object to the main storyboard file & amp; There is no need to modify anything in the myViewController
      • appDelegate file. .
      • Create that controller as the entry point in the storyboard. A default arrow will be preceded by your controller

        Hopefully gives you an overview.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -