0

MMDrawerを使用したアプリを持っています。UIVIew と UIButtons を使用してカスタム タブバーを作成しました。すべての UIButton の下に UILabel があり、自分がどのビューコントローラーであるかを示します。

カスタム タブバーの UIButton をクリックすると、UILabel がアニメーションで移動しません。

これが私のコードです

UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    SettingViewController *Help = [storyBoard instantiateViewControllerWithIdentifier:@"SettingViewController"];
    UINavigationController *detailNav = [[UINavigationController alloc]initWithRootViewController:Help];
    AppDELEGATE.drawer.centerViewController = detailNav;
[UIView animateWithDuration:0.5 animations:^{

        CGRect frame =   self.lblSplit.frame;
        frame.origin.x = sender.frame.origin.x - 10;
        self.lblSplit.frame = frame;
    }];


lblSplit は、UIButton クリック時に移動したい UILabel です。

4

0 に答える 0