NS_ENUM & NS_OPTIONS
NS_ENUM and NS_OPTIONS are the modern, Apple-approved way to declare enums and bit-masks.
NS_ENUM and NS_OPTIONS are the modern, Apple-approved way to declare enums and bit-masks.
NSURLProtocol is the most powerful (and least-known) piece of Apple’s URL Loading System.
NSLinguisticTagger offers powerful tools to process natural language. It breaks strings into tokens, finds parts of speech and stems, pulls out names of people, places, and groups, and spots languages and scripts.
The Address Book UI framework in iOS, used alongside AddressBook.framework, provides controllers for managing contacts but includes a uniquely valuable function, ABCreateStringWithAddressDictionary(), which formats address components into a localised string.
The article explores the CFBag and CFMutableBag Core Foundation types, which implement a bag (multi-set) data structure, allowing multiple occurrences of elements with associated counts.
NSString and its toll-free bridged counterpart CFMutableString in Foundation and Core Foundation are highlighted for their exceptional Unicode handling, with CFStringTransform enabling powerful string transformations like stripping diacritics, naming Unicode characters, and transliterating between scripts such as Latin, Cyrillic, and Hiragana.
NSSortDescriptor is a Foundation class used to sort collections. It is created with a key (property to sort on), ascending (true for ascending order), and optionally a selector or comparator for comparisons.
NSCache works like NSMutableDictionary but removes objects automatically when memory runs low. This saves you from handling memory warnings or setting up timers to clear space.
NSIndexSet and its mutable version, NSMutableIndexSet, form a sorted set of unique unsigned integers. They act like an NSRange that allows gaps.
100 things you should know if you are going to design an effective and persuasive website, web application or software application.
The number of customers purchasing went up by 45%. The extra purchases resulted in an extra $15 million the first month. For the first year, the site saw an additional $300,000,000.
Zebra striping, also known as candy striping or half-shadow, is the application of faint shading to alternate lines or rows in data tables or forms.
Here is the most basic JavaScript to get the iPhone orientation detection going...
Validating email addresses is hard...