Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

drop down menu on navigation bar

In android, there is action bar with drop down menu, an example is the old Gmail app in Android:

enter image description here

As you see above, when the three-dots is clicked, a drop down menu is shown.

My Questions:

  1. I am wondering, if I want to implement the same three-dots button which shows drop down menu in iOS with Navigation Controller, how to do it?

  2. If it is not a common thing to do in iOS, what is the equivalent in iOS?

(I still want to implement it in my iOS project though)

like image 769
Leem.fin Avatar asked Oct 29 '22 03:10

Leem.fin


2 Answers

There is no built-in UI component for this in iOS, and it's not widely used in apps.

But when I need to implement it I usually use AssistoLab DropDown, it's a very easy to use, well-documented and stable library.

like image 82
Mo Abdul-Hameed Avatar answered Nov 15 '22 07:11

Mo Abdul-Hameed


The closest I can think of is UIPopOverController for iPad. You can put a tableview in a "popover".

Sample popover

For iPhone Popover visit this tutorial

https://richardallen.me/2014/11/28/popovers.html

like image 27
Naga Boyapati Avatar answered Nov 15 '22 06:11

Naga Boyapati