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
You should create button and add them as subView. When you need to put button at random location, you can use:
subView
[button1 setFrame:CGRectMake(5,219,230,45)]; [button2 setFrame:CGRectMake(5,273,230,45)]; [button3 setFrame:CGRectMake(244,224,230,45)]; [button4 setFrame:CGRectMake(244,273,230,45 )];