How to call initWith… in swift

后端 未结 4 774
忘掉有多难
忘掉有多难 2021-01-25 07:52

I have a an objective-c class (RDAlertView) which create an Alert (UIAlertView for ios < 8 and UIAlertController for ios >=8 )

Here is the code in Object

4条回答
  •  心在旅途
    2021-01-25 08:33

    I think this is what you need:

    var alert = RDAlertView(title: "Notification", message: "message", completion: nil, cancelButtonTitle: "OK", otherButtonTitles: nil)
    alert.show()
    

    Hope It will help.

提交回复
热议问题