Search ranges of particular character set

August 7, 2014

- (NSArray *)rangesOfNumbersInString:(NSString *)str {

    NSCharacterSet *cs = [NSCharacterSet decimalDigitCharacterSet];

    NSMutableArray *results = [NSMutableArray array];

    NSRange searchRange = NSMakeRange(0, [str length]);

    NSRange range;

    while ((range = [str rangeOfCharacterFromSet:cs options:0 range:searchRange]).location != NSNotFound) {

        [results addObject:[NSValue valueWithRange:range]];

        searchRange = NSMakeRange(NSMaxRange(range), [str length] – NSMaxRange(range));


    return results;



August 2, 2014
  1. NCWidgetController
  2. NCWidgetListViewController & NCWidgetListViewDelegate
  3. NCWidgetSearchViewController & NCWidgetSearchViewDelegate
  4. NCWidgetProviding

Right to be forgotten

August 2, 2014
  • The right to be forgotten could make Facebook and Google, for example, liable for up to two percent of their global income if they fail to remove photos that people post about themselves and later regret, even if the photos have been widely distributed already.
  • The concept stems from the desire of an individual to ‘determine the development of his life in an autonomous way, without being perpetually or periodically stigmatized as a consequence of a specific action performed in the past

Firmware Vs OS

August 1, 2014

Firmware refers to a small piece of code that resides in non-volatile memory. In hardware peripherals that are commonly found in offices these days (e.g. printers, VoIP phones, etc.), firmwares are usually responsible for loading (e.g. OS code signature verification) and managing (e.g. flashing OS in recovery mode) the operating systems that is installed on the machine. It’s the operating system’s job to carry out the actual task (e.g. printing).

Continuous Integration in Mobile app development

July 26, 2014

Continuous Integration (CI) – the practice of automating builds and testing is a staple of modern application development. By automating the build process and running the tests on a regular basis, you improve the quality of your application and free up valuable time to concentrate on writing a better user experience.

Why Apple Rocks (1) – Gyroscopes

May 22, 2014

Even premium handsets like the Samsung S4 had gyroscopes that either worked badly or were even faked by mixing accelerometer and compass data

At the same time, Ballet company & iPhone gyroscope teach couples some new dance moves


Make Status Bar Texts white

April 10, 2014

Set the followings in Info.plist

  1. View controller-based status bar appearance – NO
  2. Status bar style – UIStatusBarStyleLightContent

5 Patents

April 1, 2014
  1. Detecting data in messages and converting them into a link that can be clicked
  2. Background syncing of data
  3. Universal search used in its Siri voice-recognition digital assistant
  4. An auto-complete feature that suggests words as a user is typing
  5. Slide to unlock

Objective-C property

March 18, 2014

An Objective-C property is a public or private method declared with the @property syntax.

Identify a set of methods that qualify to be converted into a property, such as these:

- (NSColor *)backgroundColor;
- (void)setBackgroundColor:(NSColor *)color;

and declare them using the @property syntax with the appropriate keyword(s):

@property (copy) NSColor *backgroundColor;

Secure Enclave

February 27, 2014

A coprocessor fabricated in the Apple A7 chip.


Get every new post delivered to your Inbox.