Hi,
I think that you've found a very obscure bug in the SDK :) - You should file a bug report with Apple
I build a test app and got it to reproduce your problem :
- Create a split pane project
- Set the tint of the toolbar in the master pane (in DetailView) (to red)
- Set the tint of the navigation item (to blue)
- Add a few bar button items to check that the layout was OK
- Ran the app
This showed the layout being wrong (as in your screenshots above)
Then I build another and it was absolutely fine :( The only difference between creating these apps was me not ever setting the tint of the navigation item in the popup view.
I tried setting the tint of the navigation item in my original project back to 'default' to see what happened and the layout bug was still there so whatever setting the tint does is irriversible as far as I can see.
I'd get in touch with Apple :)
Sam
PS I know this isn't really an answer but it's the best I have - I'm going to keep playing with it to see what's going on :)
OK, I've had a play around and can see what's happening - even though I'm not 100% sure I understand it.
I used git to take a snapshot of my working second project (the one with a tint on the master view toolbar but a working layout on the popup).
Then I broke it by setting the tint on the popup's navigation bar.
Then, I ran git diff
and the only changes were (in my MainWindow.xib file)
<bool key="IBUIClipsSubviews">YES</bool>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ <object class="NSColor" key="IBUITintColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MSAwLjg4NTI1MDE4NjEgMC42NDExMjQ4OTI1AA</bytes>
+ </object>
</object>
This is the new tint color added to the definition of my navigation controller and is what's breaking the layout.
I then went into interface builder an set the style of my popup's navigation bar to be 'Default' - the tint went back to default and when I ran the app it was fixed again.
Sure enough, when I did another git diff
I found that the lines added above had been removed.
I then tried playing with the styles - I set the style to be 'Black Opaque' and ran the app - it stoll worked fine. This is because setting the style doesn't set a black tint, instead it adds this line to the xib :
+ <int key="IBUIBarStyle">1</int>
This tells me that you could either fix it by either
1) setting the style in interface builder
2) edit your xib file by hand to remove the lines that specify the tint
3) Setting the barStyle property in your code (but I'm not 100% sure this one would work)
Hope that's helpful, thank's for a challenge,
Sam