Adding a simple UIAlertView

后端 未结 10 639
囚心锁ツ
囚心锁ツ 2020-12-12 14:26

What is some starter code I could use to make a simple UIAlertView with one \"OK\" button on it?

10条回答
  •  再見小時候
    2020-12-12 15:13

    As a supplementary to the two previous answers (of user "sudo rm -rf" and "Evan Mulawski"), if you don't want to do anything when your alert view is clicked, you can just allocate, show and release it. You don't have to declare the delegate protocol.

提交回复
热议问题