Utilities.h
1016 Bytes
//
// Utilities.h
// LifeLog
//
// Created by Nguyen Van Phong on 7/29/17.
// Copyright © 2017 PhongNV. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface Utilities : NSObject
+ (NSString *)addCommaFromNumber:(NSInteger)number;
+ (UIColor *)convertHecToColor:(int) hex;
+ (void)showErrorMessage:(NSString *)message withViewController:(UIViewController *)vc;
+ (NSString *) getImageLink : (NSString *) path;
//share function
+ (void) shareFacebook : (NSString *) content withViewController:(UIViewController *)vc;
+ (void) shareTwitter : (NSString *) content withViewController:(UIViewController *)vc;
+ (void) shareLine : (NSString *) content withViewController:(UIViewController *)vc;
+ (void) shareEmail : (NSString *) content withViewController:(UIViewController *)vc;
//convert date time
+ (NSDate *) dateFromString : (NSString *) dateString withFormat: (NSString *) format;
+ (NSString *) stringFromDate : (NSDate *) date withFormat: (NSString *) format;
@end