make hyperlink -- iOS (iPhone)



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];

덧글

댓글 입력 영역