Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
36 lines (28 sloc) 0.59 kb
//
// RIButtonItem.m
// Shibui
//
// Created by Jiva DeVoe on 1/12/11.
// Copyright 2011 Random Ideas, LLC. All rights reserved.
//
#import "RIButtonItem.h"
@implementation RIButtonItem
@synthesize label;
@synthesize action;
+(id)item
{
return [self new];
}
+(id)itemWithLabel:(NSString *)inLabel
{
RIButtonItem *newItem = [self item];
[newItem setLabel:inLabel];
return newItem;
}
+(id)itemWithLabel:(NSString *)inLabel action:(void(^)(void))action
{
RIButtonItem *newItem = [self itemWithLabel:inLabel];
[newItem setAction:action];
return newItem;
}
@end
Jump to Line
Something went wrong with that request. Please try again.