When I was trying to modify the navigation bar's title in one of my view controllers, Xcode seems to render the bar incorrectly, like below:
As you can see, the title and the rightmost button I added earlier are compressed in a strange manner. I tried to re-open Xcode, but it doesn't work.
Does anyone know how to fix this?
Related
I have a tab bar controller and I have set both images using assets for selected and unselected icons. The icons show up correctly in interface builder
when I spin it up on the simulator and that tab is unselected, it shows something like:
But as soon as it's selected, it shows something like:
Removing view controllers along with tab bar controller and adding them again fixed this issue. Don't exactly know which setting was causing it but it got fixed by this method.
I am trying to get a Circular Icon of my Application Logo right in middle of tabbed bar menu's, I have 5 Tab Menu's where the third one i want it to look like this
trying to get this on Android & Ios
i have tried custom rendering by removing the padding but still not able to get the desired result, i found one solution updating icon using SetTabIcons Method but this method does not get trigger when we are working with bottom tabbed bar in Android, please suggest me something which can help me to get this for both android & Ios
I understand your problem here, i am not sure how to get that big button overflowing the tabbar but however have a look at this
https://devlinduldulao.pro/how-to-create-bottom-navigation-bar-in-xamarin-forms/
That's an open source project and the source code is linked at the bottom of page, you can tweak the animation (which i like very much) and use a customrenderer to render the center icon over a circle.
Have a look if that helps you in any way! :)
I'm trying to show a NavigationBar with a Bar Button Item.
I drag and drop the elements in the StoryBoard and press Reset to Suggested Constraints, but the NavigationBar doesn't appear.
I tried setting the constraints manually in a different ways but can set it right.
There is a way to use layouts instead of constraints? In Android it is more simple, but using XCode and Swift I always have problems with the UI.
The segue that appears in top of the ViewController comes from a SWRevealController. That segue has sw_front as identifier, and class SWRevealViewControllerSegueSetController.
Please give some ideas about how to fix it.
Well, I fixed it some days ago.
In conclusion:
It is better to generate the NavigationBar creating a segue from the root of the NavigationView to another ViewController.
At least for me, the SideMenu is a better option (instead of SWReveal): it is more clear to get it working without a lot of changes in the StoryBoard: https://github.com/jonkykong/SideMenu
I added 5 bar button items on my main view controller and linked them into code. I also created show segues from the bar button items to other view controllers. Although, when I run the iOS simulator none of my bar button items appear. Can someone help me?
I think you need constraints on your bottom bar, it's probably just not in the right place.
I took a look, tested some versions (you didn't make it easy) and found that if you add bar button items but don't add a toolbar there appears to be a toolbar in the storyboard but not when you run the app, nothing appears.
Instead, remove the items, add a toolbar, constrain it, then add the bar button items within it. You should have no more problems from there.
Good luck on your app! If you have any more questions, just send me a message.
When opening up a project today, there is some weird behavior in XCode. Things have disappeared in the storyboard view like the NavigationBar in viewController, the buttons associated with it, etc. I can see in the Scene list that they still exist. Is there any way to have these show up again?
You probably need to add a navigation controller to your storyboard and make your view controller the root. You cannot simply set the top bar in simulated metrics in storyboard to navigation bar.