Well, I have been facing this issue from long time , the storyboard specifically for iPad, compiles very slowly.
NOTE:- There is no auto-layout issues in the project and the project contains two storyboard one for iPhone and another for iPad. iPhone's storyboard compiles very fast I guess there are few scenes or view controllers are there, but the iPad's storyboard contains 40 scenes or view controllers and more than 30 segues connected to each other.
Here is the screenshot:
Here is my mac-mini specification:-
I don't know why I am facing this issue . It will be helpful if
anybody knows how to make the compilation faster or is it possible to
do so?
I cannot upgrade the RAM or processor, as my other iPhone project's
storyboard compiles fast and don't need to do so.
P.S This question is not related programming, I have already posted it in Super User site but found no answer yet.If any one flag the post as inappropriate or not related programming then I will be glad if you let me know where I can post the question to get some feedback on it.
Related
I need to migrate an old project to latest ios sdk. I'm facing an issue regarding storyboard. The project was last modified in iOS6 era. When I open its Storyboard with xCode8 it still renders in iOS6 design. Also it was build using Spring and Struts. You can see this in following picture.
The coordinate system also malfunctioning as selection shows y-axis shifted by 20 or 64 downwards(Based on visibility of statusbar and navigationbar). You can see it following.
I've tried turning on/off autolayout and trait collection but nothing worked. Can anyone give me an idea on what needs to be done here. It's a large storyboard and at this point it's not possible to build it from scratch.
PS: If I make a new Storyboard in the same project then it renders perfectly and no such issue arises.
I don't know what caused this issue but I finally fixed it by comparing existing storyboard with a new one. In source code of existing UIStoryboard there was a field variant(variant="6xAndEarlier") which was causing this issue. I removed it and now It works fine.
I am making my iOS Application Compatible with iPad.I have designed the UI of my Application with Xcode 7 with size classes which is more specifically designed for iPhone, Now i have to upgrade it to support iPad also.
Now with Xcode 8 when i select iPad from Storyboard with Device Pan then most of the controller are Greyed i.e. those controllers are not showing on iPad on the device also and on the Storyboard also. Please check the screenshot for that
I know the reason why they greyed out, because they are designed with size classes for a different size.
Now my question is, is it possible somehow to use this controller for iPad without Redesigning the UI and updating the Auto layouts, as of now i am not seeing any way to make this controllers available for iPad.
Also i have tried with a way but i think that will be very long, I have to delete this controllers and then add it back and set the layouts again.
Also another way would be design separate storyboard.
So please suggest me what will be a better solution to overcome from this.
Thanks
Even after compatibility conversion to Xcode 8, if still it doesn't seem to work, then you need to check if there are any leftovers like below:
If you want to make sure it works with any width and height, find the constraint:
and remove it by clicking on the x, leaving only installed checked:
That should solve it for Xcode 8.
There is possible to add storyboard for any screen size?
Example if the iPhone is 6 plus load storyboard 1 if is iPhone 5 load storyboard 2.
Yes it's possible, although I would not recommend it. In fact I would strongly recommend against it.
It is a lot more work to develop in the first place, is a lot more error-prone, and is also a lot more work to test and maintain, and makes it possible to have platform-specific bugs when you have different configurations for each screen size.
With the size classes added in iOS 8 Apple has made dealing with different sized displays easier and cleaner. They are pushing developers away from separate storyboards for iPhone and iPad and towards a single storyboard that manages all platforms.
Try having one storyboard with a universal path then splitting the path using segues based on the phone you are using. I made a cocoapod for screen sizes that might be useful for you.
Here's a tutorial
I have a very strange issue with storyboard, hope someone here can give me some insights.
I am working on a project in two computers. However, when I copy and paste the whole the whole project from one computer to the other, the storyboard loses all of its UI elements in the viewControllers. It still compiles with the correct UIs.
What is the issue?
I am following the course on iOS through iTunes university and working on the calculator project. I moved the controls on the storyboard to make room for another control at the top. Everything looks fine on the storyboard but when run in the simulator, controls are bunch up, on top of each other, and some are clearly off the top of the simulator screen. This leads to the following very related questions.
How does one move controls around on the storyboard? I went to the size inspector of each control (buttons in my case) and changed the 'Y' value (increased it by 10). I did this for each control. I didn't think about it as I was doing it because as I said, all looks fine on the storyboard. Is there a better way to move controls around? I could not figure out how to grab more than one control at a time and move them. Grabbing all and moving or all but one and moving would have been ideal.
I anticipate someone is going to say, "We need more info. " How do I show the storyboard? Is there a xml file somewhere? How is the storyboard saved? How should I show the results of the simulator?
In general, what the heck is going on? Why would things look so different in the simulator?
Is there a better forum/group to ask newbie questions about iOS programming?
My specs are these:
XCode 4.5.2
Ios simulator versions set to 6.0 and iPhone
Any other info needed? Thanks in advance,
Dave
Try setting your simulated device size to 'freeform' instead of 'inferred'. This screen is a bit smaller so the controls are no longer overlapping. The latest xcode sets it by default to ios6 (screen size of iPhone 5)
edit For a better insight in xcode IDE, please refer to the documentation provided by apple (includes screenshots for clarity)
https://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/000-About_Xcode/about.html#//apple_ref/doc/uid/TP40010215