문제

utilising xcode using the random function i want to switch to from a view to a randomly selected new view...can some one give me some direction.

도움이 되었습니까?

해결책

A new view (randomly selected) subview of the current view or some view across your application?

For subviews: you could use the tag property of every view, assign a value to it and use viewWithTag: to find a view based on the tag (= the randomly generated number from before).

For views across your app: Why would you want to do something like this? Doesn't sound exactly like good design to me.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top