Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
時々変わる1つのタグを持つウェブページのURLを持っています。ブラウザを開かずに、タグ内のメッセージをユーザーに表示したい。
それを行うための最良の方法は何ですか?
URLからhtmldataを取得する最も簡単な方法は
//ur url is a object of NSURL NSError* error; NSString* html = [[NSString alloc] initWithContentsOfURL:url encoding:NSUTF8String error:&error];
htmlの応答はURLの応答ですが、要求はメインスレッドで行われ、接続/応答時間が遅い場合は他の機能を停止します。