Create click-through overlay instruction view

后端 未结 3 576
北海茫月
北海茫月 2020-12-30 14:21

A really simple question here. How do you create a view like this? \"enter

It has to

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-30 14:44

    UIView has all the methods you need, e.g.

    • Call [myView addSubview:imgView] to add the image view to the current view (myView)
    • Call [imgView removeFromSuperview] when finish (i.e. in respond to tap or after a timer)

    Make sure userInteractionEnabled property of imgView to NO so that touches are passed to myView.

提交回复
热议问题