5

I'm looking for the simplest code in order to implement a small popup (NOT a full screen modal popup or alert view). I just need it to display some basic text inside the popup, then exit it when I click away. The popup in the EleMints app is a good example.

like this

Community
  • 1
  • 1
Radrider33
  • 557
  • 1
  • 4
  • 17

3 Answers3

6

UIPopoverController does this, but it's limited to iPad only. If you need this on iPhone, just implement a custom UIView subclass. Then when you want to show your popover, instantiate the subclass and add it to your view, maybe with some animation.

Jerry
  • 4,382
  • 2
  • 35
  • 29
  • 1
    Beginning with iOS 8, you can use `UIPopoverPresentationController` for iPhones and iPads. See [this answer](http://stackoverflow.com/a/32295641/3681880) for some links. – Suragch Aug 30 '15 at 11:12
4

You can use WEPopOver as that is the one you required. For more info, visit this link

Ilanchezhian
  • 17,426
  • 1
  • 53
  • 55
3

You can also use the following refrence link for UIPopOver controller

1) WEPopOver Library 2) Popup Bubbles

Nimit Parekh
  • 16,776
  • 8
  • 50
  • 72