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.
ビューからランダムに選択された新しいビューに切り替えたいランダム関数を使用してxcodeを利用する...誰かが私にいくつかの方向性を与えることができます.
現在のビューの新しいビュー (ランダムに選択された) サブビューまたはアプリケーション全体のいくつかのビュー?
サブビューの場合: すべてのビューのタグ プロパティを使用し、それに値を割り当て、viewWithTag:タグに基づいてビューを検索するために使用できます (= 前からランダムに生成された番号)。
viewWithTag:
アプリ全体のビュー: なぜこのようなことをしたいのですか? 私には良いデザインとは思えません。