I have a Google IOS SDK Mapview which has a peer level view that is a UITableView.
I am trying to animate that once a cetain condition is met, the alpha be set to 1 and frame be that of the mapivew.
My code is
[self.myTableView reloadData];
CGRect fullViewFrame = self.mainMapView.frame;
CGFloat originY = fullViewFrame.origin.y + [self.locationMaster count]/2*44;
CGFloat originX = fullViewFrame.origin.x + (fullViewFrame.size.width - 560.0f)/2;
CGFloat height = ([self.dataForTableArray count]+1)*44.0f;
CGFloat width = 560.0f;
CGRect targetFrame = CGRectMake(originX, originY, width , height);
[UIView animateWithDuration:0.5
delay:0.0
options: UIViewAnimationCurveEaseOut
animations:^{
[self.progressTableView setFrame:targetFrame];
self.progressTableView.alpha = 1.0f;
}
completion:^(BOOL finished){
NSLog(@"Done!");
}];
I cant understand why it dosent work. What I can think of is that being a peer level view to google map sdk and placed on top of GoogleMap SDK view the animations are not correctly displayed.
Anyone with any corrections or ideas ?