Skip to content

Instantly share code, notes, and snippets.

var buttonbar = [[CPView alloc] initWithFrame:CGRectMake(0, 0, CPRectGetWidth(bounds), 26)];
[buttonbar setTheme:nil];
[buttonbar setBackgroundColor:[CPColor colorWithPatternImage:[[CPImage alloc] initWithContentsOfFile:[[CPBundle mainBundle] pathForResource:@"screens-buttonbar-background.png"] size:CGSizeMake(1.0, 26.0)]]];
@pamelafox-coursera
pamelafox-coursera / AWidgetView.js
Last active December 16, 2015 22:28
jQuery BBQ Backbone Widget
define([
"backbone",
"jquery",
"underscore",
"js/lib/util",
"js/lib/jquery.bbq"
],
function(Backbone, $, _, util, bbq) {
var WIDGET_INFIX = '-state-';