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.
テキストデータと画像データを含む配列があります。データがテキストの場合、ラベルに表示する必要があります。それ以外の場合はイメージビューに表示します。しかし、テキストか画像かを検出する方法は?
if( [[ array objectAtIndex: yourIndex] isKindOfClass: [Name_of_the_class_your_want_to_check_for class ]] )