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. »

Placeholder in UITextView

Here's an implementation of an override for UITextView that includes a placeholder. It's pretty straight forward. We add an NSNotificaitonCenter observer for the UITextViewTextDidChangeNotification event. This »