Backbone Notes

Models Create a model class: var Appointment = Backbone.Model.extend({}); You can add defaults to a class: var Appointment = Backbone.Model.extend({ defaults: { title: 'Checkup', date: »

Programmatic search in iOS

Code Sample: @interface MyViewController @property (strong, nonatomic) NSArray *venues; @property (strong, nonatomic) NSArray *searchResults; @end - (void)loadView { [super loadView]; UISearchBar *searchBar = [[UISearchBar alloc]init]; self. »