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.
こんにちは、テキストビューにリンクを追加しようとしたときにアプリで完璧に機能します.しかし、IBからルートビューにサブビューを追加すると、URLリンクが認識されません.これを解決する方法を教えてください.
UItextView の定義中にリンクを検出するために、次のプロパティを宣言します。
textview.dataDetectorTypes = UIDataDetectorTypeAll;