SJ *_*ddy 0 iphone objective-c
我收到一条警告,说不支持detectPhoneNumbers.任何帮助请..
textScrollView.detectsPhoneNumbers = NO;
Run Code Online (Sandbox Code Playgroud)
取自文档:
在iOS 3.0中不推荐使用.请改用dataDetectorTypes.
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
};
Run Code Online (Sandbox Code Playgroud)