I have an large image I have put in an image view. the image view is larger than the screen, and i set it up to move in diagonal downwards at a certain speed.
the image does move, but at a certain point we see the white because the image has slider away. I would like to continue sliding the image like if it was a globe. or at least change the direction to opposite. I tried this:
- (void) onTimer {
palla.center = CGPointMake(palla.center.x+1, palla.center.y+1);
if (palla.center.x > -20000||palla.center.x < 20000){
CGPointMake(palla.center.x-1, palla.center.y+-1);
}
unfortunately it does not work. I even tried pos, but still does not work. how can I fizx this????? please help, I can’t find any tutorials online
You can try this. I have written with iphone in mind. “image” is the image view.