【发布时间】:2020-08-04 15:05:06
【问题描述】:
theTweet = [[[UITextView alloc] initWithFrame:CGRectMake(65, 10, 225, 65)] autorelease];
theTweet.text = [[tweets objectAtIndex:index] objectForKey:@"text"];
theTweet.dataDetectorTypes = UIDataDetectorTypeLink;
[tweetView addSubview:theTweet];
[[tweets objectAtIndex:index] objectForKey:@"text"];包含带有 http://t.co/###### 的链接,但 UITextView 似乎没有检测到 http://t.co 链接。我需要改用 UIWebView 吗?
【问题讨论】:
-
你错过了Tweet.dataDetectorTypes = UIDataDetectorTypeLink; ?
-
已经进去了。还是不行。
标签: iphone objective-c xcode hyperlink