//
//  AppUtil.h
//  InforMobile
//
//  Created by Nookaraju Maddila on 7/14/17.
//  Copyright © 2017 Infor Global Solutions. All rights reserved.
//


#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "AppDefinitions.h"
@interface AppUtil : NSObject

#pragma mark - View Autolayout

+ (NSArray *)anchorSubView:(UIView *)subView
         toOccupySuperView:(UIView *)superView
                 withInset:(UIEdgeInsets)inset;

+ (NSArray *)anchorSubView:(UIView *)subView
               inSuperView:(UIView *)superView
                    offset:(CGPoint)offset;

+ (NSArray *)fixSizeOfView:(UIView *)aView
                    toSize:(CGSize)size;

+ (UIImage *)imageFromColor:(UIColor *)color;

+ (UIImage *)fixOrientationRotation:(UIImage *)image;


+(NSNumber *)_checkIsNullForNumber:(id)value withDefault:(id)defaultValue;
+(NSString *)_checkIsNull:(id)value withDefault:(NSString *)defaultValue;
+(void)showPrivacyAlertOnController:(UIViewController *) contl privacyType:(PRIVACY_TYPE) privacyType;
@end

