I have a simple overlay containing a white UI View - which in turn contains an activity indicator which is displayed whilst waiting for a server response.
When the server reply is complete I would like to animate the height of the uiView and display a hidden return button once the height animation is complete -
I've got the following so far (which Ive adapted from another post) - but I'm not sure if I'm on the correct track!?
- (void) showAnimation
{
[_overlayInner animateWithDuration:60
animations:^{
CGRect frame = left.frame;
// adjust size of frame to desired value
frame.size.height = 120;
left.frame = frame; // set frame on your view to the adjusted size
}
completion:^(BOOL finished){
[_rtnBtn setHidden:NO];
}];
}
Above shows an error for the first line stating ' no visible interface for uiview declares the selector animate with duration'. (_overlayInner is the view which I'd like to animate)
Am I barking up the wrong tree - or is there an easier way to animate uiview height?