0

UITableView であるピア レベル ビューを持つ Google IOS SDK Mapview があります。

特定の条件が満たされると、アルファが1に設定され、フレームがmapivewのフレームになるようにアニメーション化しようとしています。

私のコードは

    [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!");
                     }];

なぜそれが機能しないのか理解できません。私が考えることができるのは、GoogleマップSDKのピアレベルビューであり、GoogleMap SDKビューの上に配置されていると、アニメーションが正しく表示されないということです.

修正やアイデアがある人はいますか?

4

0 に答える 0