Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
[UI] Enable inheritance of TTButton by using self to allocate objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Jul 22, 2010
1 parent a688b46 commit c35edce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Three20UI/Sources/TTButton.m
Expand Up @@ -72,15 +72,15 @@ - (void)dealloc {

///////////////////////////////////////////////////////////////////////////////////////////////////
+ (TTButton*)buttonWithStyle:(NSString*)selector {
TTButton* button = [[[TTButton alloc] init] autorelease];
TTButton* button = [[[self alloc] init] autorelease];
[button setStylesWithSelector:selector];
return button;
}


///////////////////////////////////////////////////////////////////////////////////////////////////
+ (TTButton*)buttonWithStyle:(NSString*)selector title:(NSString*)title {
TTButton* button = [[[TTButton alloc] init] autorelease];
TTButton* button = [[[self alloc] init] autorelease];
[button setTitle:title forState:UIControlStateNormal];
[button setStylesWithSelector:selector];
return button;
Expand Down

0 comments on commit c35edce

Please sign in to comment.