How can I change this number "63" in my code?
-(void)up
{
[UIView animateWithDuration:[self randomFloatBetween:1.0 and:0.3] animations:^{
m1.center = CGPointMake(63, 210);
}];
[self performSelector:@selector(down) withObject:nil afterDelay:[self randomFloatBetween:1.0 and:0.5]];
}
Number 63 from my CGPointMake should be random. So For number 63 I need to be random these numbers: 160 & 257.
My "m1" image, appear at CGPointMake(63, 210), BUT I want to make Point 63 random, to change from 63 to 160 or 257. RANDOM. Thnaks a lot.