iOS Text Navigation Bar - ios

I want to build a navigation bar in iOS 5 with text only items.
How to build this kind of navigation bar?
I don't khow what I need: a scrollview (horizontal) with... Is it possible to do that with the Tab Bar Controller?
Thanks.
Check this snapshot: http://www.eazyrf.com/Snap2.jpg

A quick search on google returned a couple of results:
UIScrollView Menu bar - You've got the right idea with the
UIScrollView, this will point you in the right direction.
UITabBarController Menu bar - Here is another example of how you
can make a custom UITabBarController
These should be a good place to start. Good luck!

Related

customize tab bar (need a guidance)

I saw some app have the following tab bar:
I summarize the above tab bar with following characteristics:
showing on top
not fully occupy the full screen width
Inside an navigation controller
(I am using xcode8 + swift3)
I would like to implement the same thing, but I don't know how to do it (I know how to implement default tab bar showing at bottom & occupy full screen width). Could someone please guide me or provide a tutorial link how to implement this thing? Thanks!
This is a UISegmentedControl and not a tab bar.
Read more about it here https://developer.apple.com/documentation/uikit/uisegmentedcontrol
Here is a link on how to use it https://www.ioscreator.com/tutorials/segmented-control-tutorial-ios10

ios swift How to add images to navigationbar that are not in the center/titleview?

In swift, how do I add an icon to the navigation bar on the side instead of the middle?
I want to do what Slack does with their search icon by having it appear just next to the right menu icon, see picture here: https://static-s.aa-cdn.net/img/ios/618783545/1b2dca063c580767bf28c885e22c61bc
I DO NOT want the icon to be in the center of the navigation bar with the title view property, which is what most people do. How do I have the icon appear next to the right menu? Thanks.
Depending on the complexity of your requirements you have 2 options:
Create your custom navigation bar (is just a UIView subclass)
Create an image ad apply it as a background of the navigation bar
I have not tried this with Swift yet but this works on Objective-C. You can add multiple items to the right by passing an array of UIBarButtonItems to [self.navigationItem setRightBarButtonItems:]
you can subclass it and personalize your navigation bar, this tutorial is good for that:
http://www.ioscreator.com/tutorials/customizing-navigation-bar-ios8-swift

Navigation Bar Extension iOS

I want to create an extension for my navigation bar just like in the image with the segmented control. I tried to search the web but I couldn't find anything. Is it only available for Apple developers? Pls help
Cheers,
Palash
So, you have to understand that it's not about the navigation bar. It's just a simple UIViewController with two UI segments which are UISegmentControl and UITableView(Left screen shot). On the right hand side, it's just a UITableViewController with UISearchBar.

iOS. Navigation controller toolbar - customize example

I'm newbie with Xcode, I'm learning it and trying to make my app.
Now I would like to put Navigation Bar func at the bottom of the screen with some customize.
I turn on "Shows Toolbar" at Navigation Controller and put my button there, but I cannot customize it.
Everything that I found about customizing Navigation Bar at the top of the screen or about customizing TabBar when people are talking about bottom of the screen.
Please, can you give me a code examples to build something like this at the bottom of the screen:
https://dl.dropboxusercontent.com/u/1338320/nav.png
Thanks in advance!
I'm not sure what you are trying to customize (button or bar) but when there is a bar at the bottom of the screen that is not a tab bar it is a tool bar not a navigation bar. The two are related but they each have their own class. Tool bars use UIToolBar not UINavigationBar. The tool bar is independent of the navigation controller and the two work together well. For any views that don't want a tool bar just set it to hidden in -viewDidAppear: (you will need to un hide it in views that use it).
dimimpou is right. You can accomplish this by using a UITabBarViewController and one UIBarButtonItem for "ADD ONE" and "MY STATS".
If you get lost in references(I sometimes get lost too), I may provide a simple example.
Note that if the interface provided by UIKit doesn't meet your need you can:
Use category over UITabBar or UITabBarItem.
If 1. doesn't work sadly you'll have create your own view controller which is simulate UITabBarViewController(requires some time, but it's worth)
Edit:
You can use a UINavigationController inside a UITabBarViewController.
You can easily do this. The way I understand it, you want this "Toolbar" to show from a button in the navigation bar. Just put a tab bar with what you need and make it show when the user presses the button on the navigation bar. on this buttons action put this code: self.tabBar.hidden = NO; and on the storyboard uncheck the bar visibility option. Hope it helps!

Hiding tab bar on one view in Xcode storyboard

I have a Tab bar application where I would like to hide the tab bar for one of the views to exchange it with a toolbar. I am using Storyboard and by setting the Bottom Bar to None and dragging in a toolbar this looks the way I would want it on the storyboard.
But when I run it the Tab bar doesn't go away.
I had the same question but ended up finding my correct answer here
Essentially, you can hide the tab bar for certain view controller by checking the 'Hide bottom bar on push' check box (in the view controllers attributes inspector in the storyboard).
This might not answer all, and might not be compatible with =< iOS 5, etc, but it helped me and I hope it helps others who come here.
Thanks, and good luck!
It wont work because it only simulate the view when the tabbar is hidden. If you want to hide tabbar you have to do it programmatically.
See this answer Iphone: Is it possible to hide the TabBar?
and try to use hideTabbar method in viewWillAppear, and showTabbar in viewDidDisapear.

Resources