Permalink
Browse files

Updated Readme to include arrow position

  • Loading branch information...
1 parent ded1ca2 commit b88951f0c3e39133ed07e93cdc944b8fa830338c @ocrickard committed Apr 6, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
@@ -48,10 +48,10 @@ Now, you should be able to show the calendar by alloc'ing and init'ing it, then
```
##Customization##
-You can customize the look and feel of the controller by tweaking the CoreGraphics rendering code. I realize that this is not very pretty at the moment, but I'll eventually refactor it to make sure it's all neat and tidy. You can change the placement of the little arrow to either the right or left side of the popover by changing the "arrowPosition" int.
+You can customize the look and feel of the controller by tweaking the CoreGraphics rendering code. I realize that this is not very pretty at the moment, but I'll eventually refactor it to make sure it's all neat and tidy. You can change the placement of the little arrow to either the right or left side of the popover by changing the "arrowPosition" enum in the initializer.
```
-arrowPosition = -1 // This is for arrow-left
-arrowPosition = 0 // Arrow is centered
-arrowPosition = 1 // Arrow is on the right
+[[OCCalendarViewController alloc] initAtPoint:insertPoint inView:self.view arrowPosition:OCArrowPositionRight] //Right position
+[[OCCalendarViewController alloc] initAtPoint:insertPoint inView:self.view arrowPosition:OCArrowPositionCenter] //Center position
+[[OCCalendarViewController alloc] initAtPoint:insertPoint inView:self.view arrowPosition:OCArrowPositionLeft] //Left position
```

0 comments on commit b88951f

Please sign in to comment.