Skip to content

Commit

Permalink
Update README with block usage
Browse files Browse the repository at this point in the history
  • Loading branch information
coneybeare committed Jan 11, 2012
1 parent 934a20d commit 2f88e53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -104,7 +104,7 @@ You can either implement the delegate method for when the close button is presse
}
````
or use blocks
... or forget about delegates completely and use blocks when creating the panel. See example project for example usage.
````objective-c
self.currentPanel.onClosePressed = ^(UAModalPanel* panel) {
Expand All @@ -118,6 +118,9 @@ or use blocks
};
````

*NOTE: Keeping a reference to the current panel is less necessary when using blocks because the block passes back a pointer to the panel.




Step 4: Customize UAModalPanel
Expand Down

0 comments on commit 2f88e53

Please sign in to comment.