Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated README

  • Loading branch information...
commit e8bf3e5b152c88dcd41af8d92c3eb3ca6e7d3ddc 1 parent 3360ecd
@coneybeare coneybeare authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 README.md
View
10 README.md
@@ -59,7 +59,7 @@ Display the panel by creating an instance of your subclass and show it from a po
````objective-c
- (IBAction)showModalPanel:(id)sender {
- modalPanel = [[[UAExampleModalPanel alloc] initWithFrame:self.view.bounds] autorelease];
+ UAModalPanel *modalPanel = [[[UAExampleModalPanel alloc] initWithFrame:self.view.bounds] autorelease];
[self.view addSubview:modalPanel];
[modalPanel showFromPoint:[sender center]];
}
@@ -73,12 +73,12 @@ You can optionally implement the `UAModalPanelDelegate` methods for handling dis
// Optional: This is called when the close button is pressed
// You can use it to perform validations
// Return YES to close the panel, otherwise NO
- // Only used if delegate is set. You can use blocks instead
+ // Only used if delegate is set.
- (BOOL)shouldCloseModalPanel:(UAModalPanel *)modalPanel;
// Optional: This is called after the close animations.
// If you store a local iVar, you could remove the view from the superview here and cleanup
- // Only used if delegate is set. You can use blocks instead
+ // Only used if delegate is set.
- (void)didCloseModalPanel:(UAModalPanel *)modalPanel;
````
@@ -86,8 +86,8 @@ Or you can use blocks when creating the panel.
````objective-c
// The block is responsible for closing the panel,
- // either with -[UAModalPanel hide] or -[UAModalPanel hideWithOnComplete:]
- // Panel is a reference to the modalPanel
+ // either with -[UAModalPanel hide] or -[UAModalPanel hideWithOnComplete:]
+ // Panel is a reference to the modalPanel
modalPanel.onClosePressed = ^(UAModalPanel* panel) {
[panel hideWithOnComplete:^(BOOL finished) {
[panel removeFromSuperview];
Please sign in to comment.
Something went wrong with that request. Please try again.