Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nwdl committed Apr 30, 2015
1 parent a7b4fee commit 525697d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion DLRUIKit/source/UINavigationController+DLR.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

@interface UINavigationController (DLR)

/** Returns true if the passed view controller is the first view controller in the stack of view controllers. */
/** Returns true if the passed view controller is the first view controller in the
stack of view controllers. This can be helpful in determining if the
view controller needed to be popped or dismissed. */
- (BOOL)dlr_isFirstViewController:(UIViewController *)viewController;

@end
3 changes: 2 additions & 1 deletion DLRUIKit/source/UIViewController+DLRNavigationController.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

@interface UIViewController (DLRNavigationController)

/** Returns a new navigation controller instance with this view controller as the root view controller. */
/** Returns a new navigation controller instance with this view controller as the
root view controller. */
- (UINavigationController *)dlr_embedInsideNavigationController;

@end
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,15 @@ layoutConstraint.constant = -10;

```objc
/** Returns true if the passed view controller is the first view controller in the
stack of view controllers. */
stack of view controllers. This can be helpful in determining if the
view controller needed to be popped or dismissed. */
- (BOOL)dlr_isFirstViewController:(UIViewController *)viewController;
```

### UIViewController+DLRNavigationController Category Examples

```objc
/** Returns a new navigation controller instance with this view controller as the
root view controller. */
root view controller. */
- (UINavigationController *)dlr_embedInsideNavigationController;
```

0 comments on commit 525697d

Please sign in to comment.