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
};
精彩评论