Created
January 18, 2009 22:09
-
-
Save lsinger/48786 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import <Foundation/CPObject.j> | |
@implementation AccountBarView : CPView | |
{ | |
} | |
- (id)initWithFrame:(CGRect)aFrame | |
{ | |
self = [super initWithFrame: aFrame]; | |
if (self) | |
{ | |
[self setBackgroundColor: [CPColor colorWithHexString:@"fff"]]; | |
// create input fields for username and password | |
var usernameField = [[CPTextField alloc] initWithFrame: CGRectMake(10,10,200,20)]; | |
[self addSubview: usernameField]; | |
// add submit button | |
} | |
return self; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment