开发者

detectsPhoneNumbers is deprecated?

I'm getting a warning saying that detectsPhoneNumbers is deprecated. Any help pls..

textScrollView.detectsPhoneNumbers = NO;
开发者_开发知识库


Taken from the documentation:

Deprecated in iOS 3.0. Use dataDetectorTypes instead.

UIDataDetectorTypes

Defines the types of information that can be detected in text-based content.

enum {
   UIDataDetectorTypePhoneNumber   = 1 << 0,
   UIDataDetectorTypeLink          = 1 << 1,
   UIDataDetectorTypeAddress       = 1 << 2,
   UIDataDetectorTypeCalendarEvent = 1 << 3,
   UIDataDetectorTypeNone          = 0,
   UIDataDetectorTypeAll           = NSUIntegerMax
};
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜