1

私はしばらくこれを理解しようとしてきましたが、答えを見つけることができないようです. WebView 内にリッチ テキストを含む作業中のアプリがあります。その中にハイパーリンクを追加できるようにしたいのですが、方法がわかりません。

これは私のコードです:

+(NSArray*)getSampleData

{

NSString* content0 = @"<b><u>For Printer Models:</b></u> IJ2040, 3000, 3160. </p><p>Cable Part Number: CD-023A. </p><p>Connector: RJ12. </p><p>Interface Type: <ul><li><p>12 Volt MultiPRO II: 420</li></p><li><p>12/24 Volt MultiPRO III: 520.</ul></p><p>Manufacturer Website: www.addmaster.com";

}

BusinessService* service0 = [[BusinessService alloc] initWithCaption:@"Addmaster" andImage:[UIImage imageNamed:@"interface.jpg"] andWebContentTitle:@"Connectors for Addmaster" andWebContent:content0 andWebContentImage:[UIImage imageNamed:@"interface.jpg"]];

ここで、webview から www.addmaster.com に直接リンクできるようにして、それを読んでいる人は誰でもリンクをクリックしてサファリを開くことができるようにしたいと考えています。可能な場合はお知らせください。ご助力ありがとうございます。

4

0 に答える 0