Bootstrap 3导航栏 - 动态更改动作链接上的字体颜色

时间:2016-04-01 20:45:47

标签: twitter-bootstrap

我想动态更改当前页面的操作链接的字体颜色,以便突出显示当前页面的链接。

有没有办法相对容易地做到这一点?

1 个答案:

答案 0 :(得分:0)

只需将#pragma mark - Previewing delegate - (UIViewController *)previewingContext:(id <UIViewControllerPreviewing>)previewingContext viewControllerForLocation:(CGPoint)location { UIViewController *detailVC = [self.storyboard instantiateViewControllerWithIdentifier:@"detail"]; detailVC.preferredContentSize = CGSizeMake(0.0, 568.0); previewingContext.sourceRect = self.btnDetail.frame; return detailVC; } - (void)previewingContext:(id <UIViewControllerPreviewing>)previewingContext commitViewController:(UIViewController *)viewControllerToCommit{ [self showViewController:viewControllerToCommit sender:self]; } 课程添加到您的active链接即可。所以它看起来像class=