i have a question view and will show 4 answers, only 1 are correct.
but i do not want the same button to be always the correct answer.
i will like to know how do i do a random placement of 4 UIButton and value every time.

when user go to this question again the answer will be in differ button

my placement of X,y,W,H
button 1
5,219,230,45
button 2
5,273,230,45
button 3
244,224,230,45
button 4
244,273,230,45
I happened to be working on a similar game app, so got some code which will definitely help. Check it out below. Note that I’ve put it in that you’d call a ‘correctAnswerMethod’ and a ‘wrongAnswerMethod’ for the correct and incorrect button clicks.