Iphone, IPad, Mac

    How to do date subtraction in ios get 15 days ago from today date

    To get 15 days earlier from today's date
    NSDate *todayDate = [NSDate date];

    NSDateComponents *dc = [[NSDateComponents alloc] init];
    [dc setDay:-15];

    NSDate *fiftenDaysAgo = [[NSCalendar currentCalendar] dateByAddingComponents:dc toDate:todayDate options:0];


    NSLog(@"15 Days Ago: %@", fiftenDaysAgo);

    How to download xcode dmg multiple versions or older versions xcode 4, xcode 5 or xcode 6

    You can download xcode 6 here:

    1. For Xcode 6.1
    2. For Xcode 6.0.1

    You can download xcode 5 here:

    1. For Xcode 5.1.1

    How to move textfield up when keyboard is shown IOS, Iphone

    How to move textfield up when keyboard is shown IOS, Iphone

    Check it here

    http://www.cocoawithlove.com/2008/10/sliding-uitextfields-around-to-avoi...