如何检测文字是否修复?

时间:2019-05-09 07:20:20

标签: ios swift uitextview

我希望它看起来像这样:

screenshot1

screenshot2

(我无法显示图像)

当我打开带有UITextView的代码时,可以滚动,可以滚动它以将键更改为检测行。然后,它会成功检测到单词并更改背景。

我是制作iBeacon的新手。

    override func viewDidLoad() {
    super.viewDidLoad()

    Image(imageNum: 10000)
    locationManger.delegate = self
    if (CLLocationManager.authorizationStatus() != CLAuthorizationStatus.authorizedWhenInUse) {
        locationManger.requestWhenInUseAuthorization()
    }
    locationManger.startRangingBeacons(in: region)
    showBlshText()
    departmentMessage.isScrollEnabled = true
    departmentMessage.isPagingEnabled = true
    departmentMessage.isEditable = false
    departmentMessage.isSelectable = true
    departmentMessage.dataDetectorTypes = UIDataDetectorTypes.link 
}

0 个答案:

没有答案