This image is just for reference and I want to create tab buttons like in image in my navigation bar. Any idea how to create?
Create segmented control:
UISegmentedControl
: Displays an element that comprises multiple segments, each of which functions as a discrete button. Each segment can display either text or an image, but not both. UISegmentedControl ensures that the width of each segment is proportional, based on the total number of segments, unless you set a specific width.
More info: Segmented controls