0

I have a project developed with older version of Xcode , now i upgraded to Xcode 5 and opened the project and i faced a weird issue, I can't see subviews in some of the xib files, it is showing white background of parent UIView and nothing else showing up of its subviews.

bneely
  • 9,083
  • 4
  • 38
  • 46

2 Answers2

0

I was having the same problem. I fixed it by viewing the storyboard's XML by Right-Clicking the "MainStoryboard.storyboard" file and selecting "Open As", then "Source Code". Found the view, but looked normal. Just to test, I added a blank line, saved and everything in the view started working. I may have changed the height number as well.

Hope that helps.

RickR
  • 513
  • 4
  • 9
  • In my case it's a xib file not the storyboard, I right-clicked on the xib file and selected the option of "Source Code" and changed something in a file and saved but nothing changed, still i am saying a white view and nothing else. – Usman khawar Khawar Yousaf Oct 05 '13 at 15:43
  • Hmm, ok, well my last suggestion is this. In my case the subviews where in a view, and I'm sure the view was the issue. I would insert another view and move the subviews into it. Try moving one subview and test. – RickR Oct 07 '13 at 16:26
0

Sometime during xcode upgrade width or height of UIView (or any subview) gets changed. Look for height and width of your view in size inspector and you might be able to figure out the issue. You might need to change x/y coordinates or constraints as well to make your view completely visible.

PS: I've experienced this problem in storyboard but i believe that xib might have same sort of solution.

Saurabh Hooda
  • 2,536
  • 2
  • 20
  • 30