Open URL with a button inside a table view cell

前端 未结 3 1602
轻奢々
轻奢々 2021-01-22 11:58

I want to include a button in each table cell that opens a URL.

I\'ve created tables (using an array) with images and labels just fine, however I\'m confused how to crea

3条回答
  •  -上瘾入骨i
    2021-01-22 12:17

    Just create UIButton object in viewDidLoad and add this button as a sub view on cell in cellForRowAtIndexPath function. Take Burton's frame as per your requirement.

提交回复
热议问题