101 reputation
3

SJS

http://www.wikihow.com/Create-a-Free-Virtual-Wifi-Hotspot-on-Your-Laptop

[appDelegate.ncVIDULUV setViewControllers:@[self.homePageViewController] animated:NO];

    NSArray *familyNames = [[NSArray alloc] initWithArray:[UIFont familyNames]];

    NSArray *fontNames;

    NSInteger indFamily, indFont;

    for (indFamily=0; indFamily<[familyNames count]; ++indFamily)
    {
        NSLog(@"Family name: %@", [familyNames objectAtIndex:indFamily]);
        fontNames = [[NSArray alloc] initWithArray:
                     [UIFont fontNamesForFamilyName:
                      [familyNames objectAtIndex:indFamily]]];
        for (indFont=0; indFont<[fontNames count]; ++indFont)
        {
            NSLog(@"    Font name: %@", [fontNames objectAtIndex:indFont]);
        }
    }

    dispatch_async(dispatch_get_main_queue(), ^{
            [self.viewBackground setFrame:[[UIScreen mainScreen]bounds]];
            [self.viewSubBackground setCenter:CGPointMake(CGRectGetMidX(self.view.bounds), CGRectGetMidY(self.view.bounds))];
        });

> http://stackoverflow.com/questions/422066/gradients-on-uiview-and-uilabels-on-iphone

> http://www.appcoda.com/qr-code-ios-programming-tutorial/

> http://www.infragistics.com/community/blogs/torrey-betts/archive/2013/10/10/scanning-barcodes-with-ios-7-objective-c.aspx

NSDate *dtMinimumDateTime;

        NSDate *today = [NSDate date];

        NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];

        NSDateComponents *dtComponent = [[NSDateComponents alloc] init];

        dtComponent = [gregorian components:(NSDayCalendarUnit | NSMonthCalendarUnit | NSYearCalendarUnit) fromDate:today];

        NSDate *dtOldDate = [gregorian dateFromComponents:dtComponent];

        dtComponent = [[NSDateComponents alloc] init];
        [dtComponent setYear:-12];
        dtMinimumDateTime = [gregorian dateByAddingComponents:dtComponent toDate:dtOldDate options:0];

        if([self.dtDOB compare:dtMinimumDateTime] == NSOrderedDescending)
        {
            if(error.length == 0)
                error = [NSString stringWithFormat:NSLocalizedString(@"Text-Alert-Please-Enter-Valid-DOB", nil)];
            else
                error = [error stringByAppendingFormat:@",%@", [NSString stringWithFormat:NSLocalizedString(@"Text-Alert-Please-Enter-Valid-DOB", nil)]];
        }