Devan
Devan

Reputation: 7

Swift: How to add a popup screen with label when a button is pressed in TableViewCell

The attached image is a TableviewCell in a tableview. When the user clicks on the "i" button, I want to show a popup screen, where I need to display certain text. Can someone help me how to create a view and display text.

I have tried using NMPopUpView, but I only works on normal view, but not on table view. Thanks in Advance

Upvotes: 0

Views: 1635

Answers (3)

ALOK RANJAN
ALOK RANJAN

Reputation: 7

Create a xib and then add that xib to your controller when you tapped on button.

Upvotes: 0

Akshay Agarwal
Akshay Agarwal

Reputation: 1

If you want to display the same content every time you click the button, then just add a UIAlert Controller in the IBAction of that button and that should work.

Upvotes: -1

Xcoder
Xcoder

Reputation: 1453

Use a popover to go about this. Connect the "i" button to a view controller and make that a popover. For details on how exactly to use popovers see here.

Upvotes: 2

Related Questions