Skip to content

Commit

Permalink
Merge pull request ChrisXu#9 from paulmars/master
Browse files Browse the repository at this point in the history
Show people who many not know a lot about view controllers how to add the view
  • Loading branch information
ChrisXu committed Dec 14, 2013
2 parents aa246f7 + 2f5c2a5 commit 921fff5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ CXPhoto *photo = [[CXPhoto alloc] initWithURL:<#(NSURL)#>];
[self.photoDataSource addObject:photo];
```

Add the view to your current view.
```Objective-C
[photobrowser setInitialPageIndex:indexPath.row];
[self.view addSubview:photobrowser.view];
```
~~*You should create your own `Photo` class by inherit from `CXPhoto`. And implement 'loadImageFromURLAsync:' for downloading images.~~Support in v1.1.1.
*Sample
Expand Down

0 comments on commit 921fff5

Please sign in to comment.