Skip to content

Commit

Permalink
navigation bar addded
Browse files Browse the repository at this point in the history
navigation bar property added to uiviewcontroller
  • Loading branch information
cemolcay committed Jan 9, 2015
2 parents a3af60a + eafb6c2 commit ebe2249
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Binary file not shown.
5 changes: 5 additions & 0 deletions CEMKit-Swift/CEMKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,11 @@ extension UIViewController {
}
}

var navigationBar: UINavigationBar? {
get {
return navigationController?.navigationBar
}
}

var applicationFrame: CGRect {
get {
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,14 @@ Bottom

#### Quick access navigation bar properties

``` swift
var navigationBar: UINavigationBar? {
get {
return navigationController?.navigationBar
}
}
```

Get Navigation bar height of device

``` swift
Expand Down

0 comments on commit ebe2249

Please sign in to comment.