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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.