Sunday, May 3, 2015

Interface Builder Views not showing up



To fix this issue you have to check that if is there any fixed width and fixed height set of  view element.


Select disabled item and check element properties if you see the last element (w C h R) like above attached image then uncheck this and remove this using cross button and then checked Installed option and repeat the same process for all elements in view and interface will work as expected.



How to fix swift xcode 6.2 indexing freeze or slow.

1 . To Fix this issue delete everything from ~/Library/Developer/Xcode/DerivedData, as well as the Podsfolder in project directory, and .xcworkspace.


2. open [projectname].xcodeproj package contents by rightclick on .xcodeproj extension file
and delete xcuserdata folder.

3. open [projectName].xcworkspace package contents by right click on that file and show package contents option and then delete xcuserdata folder

4. Open any other project except the malfunctioning project and then open the specific project.


==============
If problem remains same then try to open those file that have IB_DESIGNABLE
comment these tags and then you will be able to execute your project and switch between different xibs smoothly


Another and final work around is to update xcode version 6.3.1 fixed these issues


Hope it will work like a charm then.

Happy coding :)