Skip to content

Commit

Permalink
Updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeahmarani committed Apr 6, 2011
1 parent db227e2 commit acd99de
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ h2. Usage

I attempted to make this class as "drop-in" as possible since it is, after all, a subclass of UIButton. Your project must include the **QuartzCore** framework.

h3. Example

<pre>
MAConfirmButton *confirmButton = [MAConfirmButton buttonWithTitle:@"Button Title" confirm:@"Confirm Title"];
[confirmButton addTarget:self action:@selector(action:) forControlEvents:UIControlEventTouchUpInside];
[confirmButton setTintColor:[UIColor blueColor]];
[confirmButton setAnchor:CGPointMake(270, 25)];
[self.view addSubview:confirmButton];
</pre>

h3. Init

<pre>
Expand All @@ -28,4 +38,3 @@ h3. Change State
<pre>
- (void)disableWithTitle:(NSString *)disabledString;
</pre>

0 comments on commit acd99de

Please sign in to comment.