I have unknown before problem with IB.
I'm creating navigation bar in my IB, but if y of it equals 20 it looks good at the iOS 4, but on the iOS 5 - not.
Screenshots.
IB
iOS 5
iOS 4.3.3
Seems, that the view in iOS 5 does not have a Status Bar enabled. Enable a Status Bar in the view and the problem will be solved!
Why are you setting the y value of the navigation bar to 20? Users expect to see the nav bar at the very top. Having a space between the top between the navigation bar is jarring.
If you set the y to 0 then it should be flush with the top across iOS 4.3 and 5.0
In the project-Info.plist add Status bar is initially hidden = YES
But the view's Y still set 20 , not 0
Related
1- i have set my view background color to " clear color "
2- and also give the class of my view to -> "ILTranslucentView" ( which 3 makes my view translucent and shows the behind view blur !
3- and also i have a segue which is present as modally and presentation has set to "over full screen" .
these 3 steps makes my view show as translucent and the behind view is blur at the background.
BUT !! all works in iOS 8 + .
in IOS 7 is not working and showing my view as it has a clear color and it does not find out that it should be present as "over full screen"
is is not supported in iOS 7 ? or should I have to do it by another way ?
It's not supported in iOS 7, maybe you can use custom segue
All App is working fine for ios 7 except the Navigation bar
is there any way to adjust it for ios 7 in xcode 4.6
i dont want to build this from xcode 5 because it creates too many other issues
Navigation bar issue is the content start from the y=0 which hides in the navigation bar.originally it should start next from the navigation bar
In iOS7 , frame starts below the status bar , so y=0 means it will be under the status bar.
To counter this, you should put y=20.
You can use "Show the size inspector" in interface builder (xCode 5 only, but doesn't require code at all). Where you can specify delta for any View that you have, so it will look like you want in both iOS6 and iOS7. Note that xCode builds interface for iOS7 without delta's, it applies delta to iOS6, iOS6 etc.
I was developing an App for iOS 6 and this is one of my views.
Now I've updated my iPhone to iOS 7 and this is the result:
Now all the views are behind the navigation bar because iOS 7' UIViewController's views starts at the top left edge of the screen and not under the UINavigationBar as iOS 6.
Now the "email" field is behind the navigation bar.
Is there a way to use the iOS 6 style?
Thanks
Marco
STEP BY STEP WITH IMAGES
Upon reading this question I was experimenting as I had the exact same question. I then found the answer.
1) Make sure storyboard is on iOS 7
2.) Select the viewcontroller from the storyboard (In your case the Login Controller)
3.) Make sure that 'Under Top Bars' is Deselected
You need to turn off translucent for the navigation bar and that should adjust the iOS 7 constraints to be the bottom of the navigation bar again.
They have completely removed the old style for navigation bars in iOS 7. You could set the navigation bar to be an image, which could utilize the look from iOS 6, but I think it would be safer to just go with the new iOS 7 default appearance.
I had a similar problem and I fixed it by writing following code in the views' viewWillAppear method:
self.edgesForExtendedLayout = UIRectEdgeNone;
I am developing an app for iOS in which i took new ViewController
In that ViewController i dragged two UIButtons
Here is the image of .xib file
:
but when i run this project in my simulator i am unable to see my bottom button, you can see here in my simulator,
:
Where i am doing mistake ? i am not using autolayout because my deployment target is iOS 4.3
Thanks in advance.
if we create the navigationbar and tabbar programmatically then occupies a space in our viewcontroller so if we need to set our viewcontroller from .xib properly then we must have to left the space of navigation and tabbar by selectin those from .xib so that we can have exact space left for our other stuff i'm glad that it helped you. you're welcome. :)
It seems that your trouble caused by tab bar, that you create from code. I assume, you will see your button in case of simple comment line with tab bar creation. As this button is hidden, you can change it's y position or change size of your view in xib file.
I have observed such problems when we are using different sizes of .xib and iPhone simulator
i mean to say if u are using Ratina 4 for .xib .. make sure that u r also using iPhone simulator of Ratina 4 and the frame of TabBar Controller should b (0,0,320,568)
And in the case of Ratina 3.5 it should be (0,0,320,480)
I can't rotate the view in xcode4 to landscape: the dropdown that says "orientation" (under "simulated metrics") is disabled.
Any help? Thx.
Changing Interface Builder Orientation in Xcode 4
That is only enabled if you have the status bar visible on the view I believe.