how to add a UITableView into UIAlertView in iOS 7

前端 未结 3 860
误落风尘
误落风尘 2020-12-19 22:37

did some googling around saw that subview is no longer supported in iOS 7.

Some ppl recommend creating custom view, but i am not sure how can i do that.

Here

3条回答
  •  天涯浪人
    2020-12-19 23:26

    You can't. Apple deprecated ability to add any subviews to UIAlertView in iOS 7. Which I think is a good decision. A lot of people abused UIAlertView.

    Creating a custom view is a good idea, but that's not what you wrote in your code. It seems like you are adding subviews to UIAlertView again.

    See Alert View UI guide here.

提交回复
热议问题