Итак, чтобы убрать комментарий - это вообще то, что вы пытаетесь сделать?
-(void) calledWhenTimerGoesRound
{
NSLog(@"calledWhenTimerGoesRound");
[UIView beginAnimations:nil context:@"MyAnimation"];
CGRect tempFrame = myButton.frame;
tempFrame.size.width = tempFrame.size.width - 5.0f;
tempFrame.size.height = tempFrame.size.height - 5.0f;
myButton.frame = tempFrame;
[UIView commitAnimations];
}
Как выглядит ваш код таймера? Вот и пример того, что должно работать (изменяйте размер кнопки каждую секунду):
- (void) startMyTimer
{
NSTimer *timer = [NSTimer timerWithTimeInterval:1 target:self selector:@selector(calledWhenTimerGoesRound) userInfo:nil repeats:YES];
[[NSRunLoop currentRunLoop] addTimer:timer forMode:NSRunLoopCommonModes];
}