//
//  FontBaseCustom.m
//  Bury Van Hire
//
//  Created by Nguyen Hieu on 10/4/12.
//  Copyright (c) 2012 Gzone. All rights reserved.
//

#import "FontBaseCustom.h"

@interface FontBaseCustom ()

@end

@implementation FontBaseCustom

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}
-(void)SetFont:(NSArray *)arr_ui
{
//    for(int i=0;i<[arr_ui count];i++)
//    {
//        if([[[arr_ui objectAtIndex:i] subviews] count]>1)
//        {
//            [self SetFont:[[arr_ui objectAtIndex:i]subviews]];
//        }
//        else{
//            if([[arr_ui objectAtIndex:i] isKindOfClass:[UILabel class]])
//            {
//                //Bold
//                if([[((UILabel*)[arr_ui objectAtIndex:i]).font.fontName componentsSeparatedByString:@"Bold"]count]>1)
//                {
//                    [((UILabel*)[arr_ui objectAtIndex:i]) setFont:[UIFont fontWithName:@"Novecentowide-Bold" size:((UILabel*)[arr_ui objectAtIndex:i]).font.pointSize]];
//                }
//                else{
//                    [((UILabel*)[arr_ui objectAtIndex:i]) setFont:[UIFont fontWithName:@"Novecentowide-Normal" size:((UILabel*)[arr_ui objectAtIndex:i]).font.pointSize]];
//                }
//            }
//            
//            
//            
//            
//            
//            
//            
//        }
//    }
}


-(void)viewWillAppear:(BOOL)animated
{
    [self SetFont:[self.view subviews]];
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
