Skip to content

Commit 219cb37

Browse files
author
Ian Outterside
committed
Updated read me
1 parent c1f2de9 commit 219cb37

File tree

1 file changed

+44
-3
lines changed

1 file changed

+44
-3
lines changed

README.md

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,45 @@
1-
IAOViewControllerStack
2-
======================
1+
# IAOViewControllerStack
32

4-
iOS 4+ Category based push and pull of UIViewController stack
3+
IAOViewControllerStack is a UIViewController category that adds UINavigationController like push and pull directly to UIViewController.
4+
5+
Its functionality is entirely contained within the category, and it's as easy as including the category header file in your view controllers to gain the functionality.
6+
7+
### Push Example
8+
9+
``` objective-c
10+
11+
TestViewController *testViewController = [[TestViewController alloc] initWithNibName:@"TestViewController" bundle:[NSBundle mainBundle]];
12+
testViewController.title = @"Next View Controller";
13+
14+
[self pushViewController:testViewController animated:YES];
15+
16+
```
17+
18+
### Pop Example
19+
20+
``` objective-c
21+
22+
[self popViewControllerAnimated:YES];
23+
24+
```
25+
26+
## Notes
27+
The category leverages the Objective-C runtime to dynamically associate the required properties to your view controllers. It uses the UIViewController containement methods added in iOS5 in order to display your view controllers.
28+
29+
## Requirements
30+
- iOS 5+
31+
32+
## Install
33+
Simply copy and paste the 2 files inside the IAOViewControllerStack folder inside the project and #import "UIViewController+IAOUIViewControllerStack.h" in your view controller header
34+
35+
## Example
36+
A small iPad example is inside the project to demo functionality.
37+
38+
## Creator
39+
[Ian Outterside](http://www.twitter.com/ianoshorty)
40+
41+
## License
42+
I intend to full open source this category, though I have not decided on a license.
43+
44+
## Legal
45+
I hereby accept NO liability or responsibility if using this code causes any problems for you. Always check and test before you import other frameworks / libraries and files into your projects! This will be inside the license when I decide on one!

0 commit comments

Comments
 (0)