-- iOS (iPhone)

make hyperlink

어린왕자악꿍 2012. 10. 15. 13:25
Creating a hyperlink in UITextView

UITextView *iView = [[UITextView alloc] initWithFrame: frame];
iView.text = @"this is http://www.roseindia.net link";
iView.editable = NO;
iView.dataDetectorTypes = UIDataDetectorTypeLink;

//cell is the TableView's cell    
[cell.contentView addSubview:iView];
[iView release];


Creating a Hyperlink in UIWebView

[iWebView loadHTMLString:@"<html><head></head><body style=\"font-family: sans-serif;\"> .... </body></html>" baseURL:nil];