popover size based on content iOS swift
Problem:
I want to show my popover with it's size based on the content of the popover with it's tableview.How can i achieve that?
Solution:
In viewdidload of the popover call the code as like below and achieve that.
DispatchQueue.main.asyncAfte
self.preferredContentSize = self.mytbl.contentSize
}
Comments
Post a Comment