ALSpotlightView 是焦点视图控制,使用 Swift 实现。

//-- INitializing a spotlight view (shortest initialization):
let spotlightView = ALSpotlightView(spotlightCenter: CGPOInt(x: 0.5, y: 0,5))
//-- Setting a tap handler (to hide when tapped)
spotlightView.onTapHandler = {
    spotlightView.hide
}
//-- Presenting the spotlight view:
spotlightView.show()

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务