iOS engineer who likes clean, simple designs and sans-serif.

ios objective c


UITableView Cheatsheet

My cheatsheet for a basic setup with UITableView: 1) Conform header to UITableViewDataSource and UITableViewDelegate in .h @interface LLViewController : UIViewController <LLAddTaskViewControllerDelegate, UITableViewDataSource, UITableViewDelegate> 2) Set delegate and datasource to …

Read More

NSUserDefault Cheatsheet

Some notes on how to save, update and persist data using NSUserDefault. // Access NSUserDefaults using arrayForKey NSMutableArray *spaceObjectPropertyLists =   [[[NSUserDefaults standardUserDefaults] arrayForKey:SPACE_OBJECTS_KEY] mutableCopy]; // If data doesn’t exist, …

Read More

iOS Protocol + Delegation CheatSheet

My cheatsheet on how to set up Protocols + Delegation in iOS: TargetViewController.h: Create protocol¬† @protocol TargetViewControllerDelegate @required …methods… @end Create delegate @property (weak, nonatomic) id delegate; SourceViewController.h: #import “TargetViewController.h” …

Read More

Unable to dequeue a cell with identifier cell

When using a table view controller, make sure to set the table view cell to “Cell” (or whatever you set it as).  It’s defaulted to “Cell”. In Storyboard: In Code: …

Read More