textView的不常用属性

来源:互联网 发布:网络大电影盈利模式 编辑:程序博客网 时间:2024/05/19 12:38

1.dataDetectorType

    _textView.dataDetectorTypes = UIDataDetectorTypeAll;    _textView.text = @"15801270154 gaoyuqiang30@126.com";    _textView.editable = NO;//必须设成no


2.exclusionPaths(围绕路径)

UIBezierPath *exclusion = ButterflyBezierPath; self.textView.textContainer.exclusionPaths = @[exclusion]; 


0 0