Skip to content

Commit

Permalink
[FlexibleHeader] - Correct use of deprecated property in docs (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShepJGoogle authored and ianegordon committed Apr 24, 2017
1 parent f5d2d41 commit 9c3f162
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/FlexibleHeader/README.md
Expand Up @@ -317,12 +317,12 @@ by changing the Flexible Header's behavior.
<!--<div class="material-code-render" markdown="1">-->
#### Swift
``` swift
headerViewController.headerView.behavior = .Enabled
headerViewController.headerView.shiftBehavior = .Enabled
```

#### Objective-C
``` objc
headerViewController.headerView.behavior = MDCFlexibleHeaderShiftBehaviorEnabled;
headerViewController.headerView.shiftBehavior = MDCFlexibleHeaderShiftBehaviorEnabled;
```
<!--</div>-->

Expand All @@ -338,7 +338,7 @@ behavior by setting the `EnabledWithStatusBar` behavior and implementing
<!--<div class="material-code-render" markdown="1">-->
#### Swift
``` swift
headerViewController.headerView.behavior = .EnabledWithStatusBar
headerViewController.headerView.shiftBehavior = .EnabledWithStatusBar

override func childViewControllerForStatusBarHidden() -> UIViewController? {
return headerViewController
Expand All @@ -347,7 +347,7 @@ override func childViewControllerForStatusBarHidden() -> UIViewController? {

#### Objective-C
``` objc
headerViewController.headerView.behavior = MDCFlexibleHeaderShiftBehaviorEnabledWithStatusBar;
headerViewController.headerView.shiftBehavior = MDCFlexibleHeaderShiftBehaviorEnabledWithStatusBar;

- (UIViewController *)childViewControllerForStatusBarHidden {
return _headerViewController;
Expand Down

0 comments on commit 9c3f162

Please sign in to comment.