tabbed application instead or single view application in xcode? - ios

I have created a project in Xcode using UIStoryboard for the whole design.
It has an UINavigationController and a bunch of UIViewControllers and I initially used the template Single View Application for my project..
Now midways of developing I have made an important adjustment, I added an UITabBarControllerto the project. It works fine.
Would it be better now to create a new project, with the Tabbed Application template?
It is just a template, right? So probably not necessary to change? Or is it adding some Apple magic to my (now tabbed) project, which I am missing out on?

No there is no need to create a new project.
As you have pointed out it is just a template.
I'm never using any of the templates anymore, just an empty app and I start from there.

If you're not having any trouble you can just go ahead with your project.
As rckoenes said, it's always better to start from a blank project and then insert libraries and code to make sure you'll not have strange errors

Related

Best way to handle xcode Storyboard in iOS while using SVN

What is the best way to handle the storyboard with multiple developer while using SVN. I'm facing issue while commit with other developers storyboard.
For a team to work on the same app it's recommended that every developer creates a separate storyboard file for the feature / module he working on that way no conflicts would happen , only drawBack i think is that instead of easily using self.storyboard , you have to create the storyboard object corresponding to the name of the storyboard you created but it can be handled with a simple extension
I would personally prefer taking multiple storyboards in such a situation. Use storyboard references as much as you can. This will not only help your developers to independently work with their storyboards, but it would also separate multiple functionality or to be specific, modules, from each other.

Why can't I drag object from the Object Library to the View Controller in Xcode

I've just started learning how to code Swift while using the Xcode environment. I have been taking a course on Udemy. Every lesson requires me to make a new single page application to try and learn a new skill. I haven't had a problem in following the instructions and creating the apps for many months. Recently, however, I've run into the following problem... I can't drag objects from the Object Library to the View Controller in the Main.storyboard page. I restarted my computer and Xcode, but the problem is still not going away. I deleted the app where the problem was occurring and tried opening up a new app, but the problem persists. Is it something in the settings of the app?

How can I transform my iOS/Swift project to a state where I will be able to use live views?

I have been working on my first iOS/Swift application for the past month or so, and have created all of my class declaration files (i.e. my .Swift files) in my main project folder. I would really like to use live views in my app, because as of right now I cannot build/run the app at all due to errors I don't know how to fix (I'll be posting about those later today in hope of finding someone who can help me fix them).
What would be the best way to go about converting all of my views into embedded frameworks so that I could use the Live Views feature of Xcode ? I am running Xcode 7 and wrote my app in Swift 2.0
Thanks
You apparently don't need to use frameworks for that anymore. At least it works just fine in Xcode 7 for me - for classes that are part of the main project. Just mark your class as #IBDesignable.
But in order to show the preview, your code needs to be able compile, so you will need to resolve your issues first.

Swift framework how to run and test

I want to build a swift framework which can be added to hosting applications and run some logic
It basically show a new screen with web view which does some things (among other JS bridging)
After creating the logic as a regular app (with invocation button) i am now trying to convert it to a framework which can be added easily to existing projects
Is this the right way to do it? my code contain a ViewController which should be segue to
How do i start converting it to a framework? can a framework contain ViewControllers? how to test it? I see for example that a regular UIView dont exist is not available in the view adder

Can i open an Xcode project on a button click from another project without custom URL schema?

I want to integrate two Xcode projects together and they both are full Xcode projects with UI and all. For example lets say i have an App 'A' which has a UIButton and on click it should open App 'B' which has its own UI.
I know we can open an App from another App through Custom URL schema but is there a way i can do this without custom URL schema and via connecting Xcode projects.
I know this a little vague question but i don't a better way to put this.
Thanks,
You're question doesn't make any sense. You're talking about two very different things. Yes, you may import one Xcode project into another Xcode project and setup a dependency between them. However, this in no way affects how the apps work with each other. If you're wanting to embed one app inside another, you have to do it at the view controller/code level. You cannot simply add one project to another and expect the two to intercommunicate. You'll have to move the functionality of one app to another. Apps are sandboxed on the device and can therefore have no communication with each other except for by using custom URL schemes as you've mentioned.

Resources