specially indicating or highlighting a toolbar button when a note is added in iphone

后端 未结 1 1942
猫巷女王i
猫巷女王i 2021-01-21 05:00

In my app i have an option for adding notes to particular tips.the button for adding notes is at the top.So i want to highlight that particular button when a notes is added.If a

相关标签:
1条回答
  • 2021-01-21 05:10

    We used some special button in tool bar in an application. We make it following way.

        UIButton* btnInfo = [UIButton buttonWithType:UIButtonTypeInfoLight];
    [btnInfo addTarget:self action:@selector(verInfoBtnClicked:) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem *modalButton = [[UIBarButtonItem alloc] initWithCustomView:btnInfo];
    

    Here main point is to use [[UIBarButtonItem alloc] initWithCustomView:btnInfo]; method.

    Check if it can be helpful...

    0 讨论(0)
提交回复
热议问题