Skip to content

Instantly share code, notes, and snippets.

@lsinger
Created January 18, 2009 22:09
Show Gist options
  • Save lsinger/48786 to your computer and use it in GitHub Desktop.
Save lsinger/48786 to your computer and use it in GitHub Desktop.
@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